Ionic 3: ng-change doesn't work

后端 未结 1 1935
挽巷
挽巷 2021-01-15 13:54

I have a input field where a user can input his address and get auto-suggestions:

 Adresse:
             


        
1条回答
  •  猫巷女王i
    2021-01-15 14:15

    ng-model and ng-change were used in Angular 1.

    With Ionic >= 2, you can use ngModel and ionChange.

    
    
    

    The parentheses signify that data binding is from the template to the component, the square brackets, component to the template. When both are present, it is a two way data binding.

    For more info on template syntax, look at the Angular docs.

    0 讨论(0)
提交回复
热议问题