I have just updated to angular 9! and suddenly I got this exception:
Error occurs in the template of *, error NG8003: No directive found with exportAs 'ngForm'
Here is the template:
<form (ngSubmit)="onLogin(frm.value)" #frm="ngForm" style="margin:0 auto;"> //All of these was working fine before the update
I also imported FormsModule, ReactiveFormsModule, CommonModule in app.module.ts:
imports: [
BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }),
HttpClientModule,
FormsModule,
ReactiveFormsModule,
CommonModule,
Note, I am using Visual Studio angular template.
Thank you for help.