AngularJS null value for select

后端 未结 9 917
攒了一身酷
攒了一身酷 2021-02-01 14:32

I couldn\'t find an elegant way for setting null values with a

9条回答
  •  不思量自难忘°
    2021-02-01 14:50

    If you REALLY want to use null, see below. You need to use ng-options and let Angular handle the mapping:

    
    
    
      
      Color selector
    
      
    
    
    
        
      

    {{obj}}

提交回复
热议问题