Angular2 *ngFor in select list, set active based on string from object

前端 未结 2 1871
不知归路
不知归路 2021-02-01 02:09

I\'m trying using the ngFor on my select DropDownList. Have loaded in the options which should be in the dropdown.

The code you see here:

&         


        
2条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-01 02:34

    This should work

    
    

    I'm not sure the attr. part is necessary.

提交回复
热议问题