afridi shayed afridi shayed - 28 days ago 5x
AngularJS Question

Dropdown list values not being populated

My aim is to show values in a dropdown list.

My code gets the data from database but the dropdown list is not being populated

$scope.CountryID = xxx.CountryID;


To show data in DropDown list you need use ng-repeat


    <option ng-repeat="cate in category" value="{{}}">{{}}<option>

In above code category is a $scope with data from DB