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. https://angular.io/guide/