I am new with the AngularJs. Can anyone say the difference between ng-model and data-ng-model?
With ng-model
First
There is no difference between ng-model and data-ng-model if you see in terms of AngularJs.
Actually, 'data' used as prefix to validate HTML5 validation. So, it is good practice to use data-ng-model, however, you can use ng-model as well. There is no problem in that also.
Both have the same meaning and both have the same output:
With ng-model
First Name :
Second Name :
With data-ng-model
First Name :
Second Name :