I recently came across a discussion about the distinction between
ng-* and data-ng-*
in AngularJS. Apparently, using data-ng-* ensures that the HTML remains valid. But I can't help but wonder, why is this necessary when I can simply declare the angular namespace in a single line like so?
<html xmlns:ng="http://angularjs.org" ng-app>
Is it merely for the purpose of validation by an HTML Validator?
Pardon my ignorance, but I am quite perplexed by all of this.