Setting default value in select drop-down using Angularjs

前端 未结 10 1128
囚心锁ツ
囚心锁ツ 2020-12-03 05:24

I have an object as below. I have to display this as a drop-down:

var list = [{id:4,name:\"abc\"},{id:600,name:\"def\"},{id:200,name:\"xyz\"}]
10条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-03 05:42

    I could help you out with the html:

    
    

    instead of

    
    

    to set abc as the default value.

提交回复
热议问题