3 ms·
Is it really true that the order you write html attributes/directives in angular matters? That was pretty surprising for me.
by ufo 12y ago
Is it really true that the order you write html attributes/directives in angular matters? That was pretty surprising for me.
- artjumble 12y agoAfter looking at the linked article and reading the comments, it appears that it doesn't make an actual impact on performance. He is just suggesting the ordering for consistency.
- robertthegrey 12y agoI don't know how you can say that when in his article he clearly says: "In AngularJS, not all HTML attributes are equal; some have no significant effect; others have a profound impact on how your page is rendered." If it was just about consistency, then it would for part of an Angular style guide that so many companies produce.