Angular 2 - Setting selected value on dropdown list

前端 未结 8 1157
天命终不由人
天命终不由人 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:52

    Angular 2 simple dropdown selected value

    It may help someone as I need to only show selected value, don't need to declare something in component and etc.

    If your status is coming from the database then you can show selected value this way.

提交回复
热议问题