How to set default value in ng-options

后端 未结 4 501
北荒
北荒 2020-12-10 12:39

I can set a dropdown list with default value in angularjs as,

 

In my controller

$scope.data = {selectedOption: $scope.venueNamelists[i].name};

the model value should equal to the key,value pair in the venueNamelists.

提交回复
热议问题