Angular2 select default first option

前端 未结 10 1553
半阙折子戏
半阙折子戏 2021-01-04 08:32

How do i select the first option in a select by default in angular 2 the following code don\'t seems to work.


    
 

CDMs is an array of objects, where an object has Id and Name as attribute. And selectedCDM is set to first element of CDMs array

提交回复
热议问题