md-select can't set selected value

后端 未结 7 1562
有刺的猬
有刺的猬 2020-12-29 04:59

I have a md-select set up as follows:


    

        
7条回答
  •  被撕碎了的回忆
    2020-12-29 05:14

    This solution is simple if you are wanting to default to the first value in the drop down.

    Use the ng-select="$first". This will default the drop down to the first value.

    
       {{item.Name}}
    
    

    Here is a CodePen to demonstrate.

提交回复
热议问题