I am new to Angular. Trying to use the ng-model directive for 2 way binding
I have tried 2 ways to do it
<!-- <input type="email" class="form-control" id="email" placeholder="EMAIL" ngModel name ="email"> -->
<input type="email" class="form-control" id="email" placeholder="EMAIL" [(ngModel)]="email">
Both of them are described above
First one is working where and second is not
Could you please explain me the problem in the second line which is not working using [(ngModel)].
Is this an incorrect syntax?
Forms module is already imported in app.module.ts