Working with select using AngularJS's ng-options

前端 未结 8 783
渐次进展
渐次进展 2020-11-22 08:30

I have read about it in other posts, but I couldn\'t figure it out.

I have an array,

$scope.items = [
   {ID: \'000001\', Title: \'Chicago\'},
   {ID         


        
8条回答
  •  遇见更好的自我
    2020-11-22 08:48

    If you need a custom title for each option, ng-options is not applicable. Instead use ng-repeat with options:

    
    

提交回复
热议问题