Reputation: 11000
I am going thought tutorial that explains that FormsModule gives us a template driven directives such as ngModel.
But I can see in my app.module.ts -
import {NgModel} from '@angular/core'
So NgModel does not provide ngModel directive...?
Upvotes: 0
Views: 382
Reputation:
NgModel
is an export from the framework, while ngModel
is a tag attribute used to bind a value to an HTML element.
Both cases follow syntax rules : NgModel
is in pascal case, and ngModel
is in camel case. More information here
Upvotes: 1