You can use directives as custom tags, attributes, or comments.
For custom tags, older versions of IE have problems with them and need additional code to deal with them. This is pretty well documented on the AngularJS website.
I am not aware of any browsers that have problems with custom attributes, but custom attributes prevent W3C from checking on the page as valid HTML4 or XHTML. If this is important to you, then the possibility of using directives as comments is valuable.
HTML5 allows customization of attributes starting with "data-" to be valid, although this is not a problem for HTML5 pages.
source share