AngularJS How do I pre select the value of a dropdown when the value is retrieved from a webservice?

后端 未结 2 635
面向向阳花
面向向阳花 2021-01-06 09:19

Hello community been stuck on this one for a while...

Scenario: I have a dropdownlist which I pre-populate with values fetched from a service. Now

2条回答
  •  时光说笑
    2021-01-06 09:40

    ngSelected is the directive of choice: http://plnkr.co/edit/dGJWityhYUZd9Ht6VgSJ?p=preview

提交回复
热议问题