AngularJS Pro-Tip: Be Mindful Of HTML Attribute Ordering

added by JavaScript Kicks
1/15/2015 2:38:44 PM

169 Views

When it comes to programming, I absolutely believe that the more mindful you are about your choices, the better you will become at programming over time. In AngularJS, one small aspect of the code that can benefit from mindfulness is the ordering of HTML attributes in your templates. In this post, I'm not saying that you have to use my approach; I'm simply sharing my approach and am strongly recommending that you use "an approach" and use it consistently.


0 comments