Sorting dropdown alphabetically in AngularJS

前端 未结 4 1580
情话喂你
情话喂你 2020-12-07 15:19

I\'m populating a dropdown through the use of ng-options which is hooked to a controller that in turn is calling a service. Unfortunately the data coming in is a mess and I

4条回答
  •  醉话见心
    2020-12-07 16:01

    For anyone who wants to sort the variable in third layer:

    
    

    you can do it like this

    
    

提交回复
热议问题