I am new with the AngularJs. Can anyone say the difference between ng-model and data-ng-model?
With ng-model
First
They are the same. Angular strips the data- part from the attribute. From the docs:
Angular normalizes an element's tag and attribute name to determine which elements match which directives... The normalization process is as follows:
- Strip
x-anddata-from the front of the element/attributes.- Convert the
:,-, or_-delimited name tocamelCase.