Julius Dzidzevičius
Julius Dzidzevičius

Reputation: 11000

Angular4 - confusion about NgModel and ngModel,

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

Answers (1)

user4676340
user4676340

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

Related Questions