afridi shayed afridi shayed - 1 year ago 88
AngularJS Question

In AngularJs why dropdown not showing value while editing mode

$scope.CountryID = xxx.CountryID;

Here my aim is to Showing values in DropList. This is my Code here I'm getting data from database but why values not binding in dropdownlist?

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download