In my template...
<input matInput placeholder="Amount" [(value)]="amount">
In my component...
class ExampleComponent implements OnInit {
amount: number = 0;
...
}
This doesn't bind.
I've also tried this in my template...
<input matInput placeholder="Amount" [(ngModel)]="amount">
Which causes the following error on compile...
Can't bind to 'ngModel' since it isn't a known property of 'input'.
importsarray of NgModule inside app.module.ts - canbax