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
Post a Comment