error ts2304 3a cannot find name 27ngform 27

Solutions on MaxInterview for error ts2304 3a cannot find name 27ngform 27 by the best coders in the world

showing results for - "error ts2304 3a cannot find name 27ngform 27 "
Axel
02 Mar 2020
1/*
2The answer of this context "error TS2304: Cannot find name 'NgForm'."
3
4There are chances of arising this error in angular when we import 'NgForm' from '@angular/forms' in .component.ts file.
5
6To resolve this error you may have added below code line in app.module.ts file
7*/
8
9import { FormsModule } from '@angular/forms';
10
11@NgModule({
12---------------
13---------------
14  imports: [     
15        BrowserModule,
16		FormsModule
17  ]
18---------------
19---------------
20}) 
21
22/*
23I hope that it will help you.
24Namaste
25*/
26