How to get the value from ion-select option

前端 未结 3 1022
借酒劲吻你
借酒劲吻你 2020-12-31 05:35

I have an array of object called options.

this is my html code

    
        place         


        
3条回答
  •  太阳男子
    2020-12-31 06:07

    Use (ngModelChange) instead of (click) event.

    (ngModelChange)="optionsFn()"
    

    whenever the model value changed the ngModelChange will automatically call the relative function.

    
      place
      
          {{item.name}}   {{item.price}} 
      
    
    

提交回复
热议问题