angularjs - Naming Angular directives (ng- vs data-ng-) -


what recommended practice labelling angular directives?

other html validation, there other benefits prefixing both in-built , own custom directives "data-"?

or unnecessary clutter?

i data- best practice. since allow html validate, should standard practice developers. may cause bit of clutter, overall think helps maintain intergrity of app , of developer. , seeing doesn't matter angular can tell far, there no reason not use data-.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -