Ionic 4 ng model doesn't working

Ionic 4 with AngularJS:

<ion-input ng-model="formData.example"></ion-input>

The data is not getting binded.

The project is setted up with vanilla JS, is there any implementation that can make this to be working with AngularJS?


If you haven’t created an Angular based app then ng-model won’t work. This is an Angular specific feature.

If you have created an Angular version and it’s still not working, then have a look at the Angular Docs to see how it should be set up.

Include FormsModule from @angular/forms both in your app.module.ts (and among the imports) and in the component.ts file where you’re using NgModel