Angular 6 Material mat-select change method removed

后端 未结 5 919
小蘑菇
小蘑菇 2020-12-07 19:39

In Angular Material Design 6, the (change) method was removed. I cant find how to replace the change method to execute code in the component when the user change selection

5条回答
  •  醉梦人生
    2020-12-07 20:17

    I have this issue today with mat-option-group. The thing which solved me the problem is using in other provided event of mat-select : valueChange

    I put here a little code for understanding :

    
      Filter By
       
    
        -- None --
          
            
              {{option.viewValue}}
            
          
      
    
    
    

    Mat Version:

    "@angular/material": "^6.4.7",

提交回复
热议问题