Can anyone help me with a ng-option issue, I am trying to have ng-option created dynamically. What I am doing is pretty complex but I tried to explain it in following link
Like this?
HTML
JS:
angular.module("myApp",[])
.controller("myCtrl",function($scope){
$scope.County = [{ CountyName: 'C1', countyNumber: '01' }, { CountyName: 'C2', countyNumber: '02' }, { CountyName: 'C3', countyNumber: '03' }, { CountyName: 'C4', countyNumber: '04' }];
$scope.Municipality = [{ MunicipalityName: 'M1', MunicipalityNumber: '01' }, { MunicipalityName: 'M2', MunicipalityNumber: '02' }, { MunicipalityName: 'M3', MunicipalityNumber: '03' }];
$scope.Districts = [{ DistrictsName: 'D1', DistrictsNumber: '01' }, { DistrictsName: 'D2', DistrictsNumber: '02' }, { DistrictsName: 'D3', DistrictsNumber: '03' }];
$scope.featuretype = [
{ type: 'County', data:$scope.County, displayName:'CountyName' },
{ type: 'Municipality', data:$scope.Municipality, displayName:'MunicipalityName'},
{ type: 'District', data:$scope.Districts, displayName:'DistrictsName'}
];
});