ng-app vs. data-ng-app, what is the difference?

I’m currently looking at this start tutorial video for angular.js

At some moment (after 12’40”), the speaker states that the attributes ng-app and data-ng-app="" are more or less equivalent inside the <html> tag, and so are ng-model="my_data_binding and data-ng-model="my_data_binding". However The speaker says the html would be validated through different validators, depending on which attribute is used.

Could you explain the difference between the two ways, ng- prefix against data-ng- prefix ?

6 Answers
6

Leave a Comment