Angular 2 - Setting selected value on dropdown list

前端 未结 8 1177
天命终不由人
天命终不由人 2020-12-04 16:29

I have run into an issue in pre-selecting values on a dropdown list in Angular 2.

I set an array of colours in the component which I bind successfully to the drop

8条回答
  •  鱼传尺愫
    2020-12-04 16:44

    This works for me.

    
    

    Not sure this is valid or not, correct me if it's wrong.
    Correct me if this should not be like this.

提交回复
热议问题