Skip to main content

Posts

Showing posts with the label What is the difference between ng-app vs. data-ng-app and x-ng-app?

What is the difference between ng-app vs. data-ng-app and x-ng-app?

Today, I am going to share the difference between the some powerful  angularjs prefix like ng-app vs. data-ng-app vs. x-ng-app . This powerful  prefix are used to decide when we need to use data.* , x.* and ng.* . This is basic concept and use to validate the HTML template without using the data.* and x.* not possible to validate HTML template. That means you can say that when we need to validate HTML Template that time we are using data.* or x.* otherwise we are using simple ng.* . One other things on that:  Some time throw error on a property like ng-app but don't throw an error with data-* or x.* like data-ng-app or x-ng-app . For the conclusion we can say the only difference regarding HTML 5 validation and the best practice is used to data-ng-app or x-ng-app not ng-app. KnockoutJs also uses data-* attributes. 01 02 03 04 05 06 07 08 09 10 11 12 //The normalization process of elements o...