AngularJS tags attributes
12 | Strictly speaking these extra attributes are not defined in the HTML specifications thus, are not valid HTML. You could say that AngularJS provides and parses a superset of the HTML specification. However, as of v1.0.0rc1, you could use data-* attributes, for example There is a guide to the AngularJS Compiler that contains some more information on the process. In short; the AngularJS compiler reads your HTML page, using these attributes to guide it as it edits and updates your page, after loading, via javascript and the HTML DOM. | |||
5 |
From main ng module. Source code.
No. But attribute-style directives can be prefixed with x-, or data- to make it HTML validator compliant. See direcives documentation. | ||
4 | From the docs: http://docs.angularjs.org/guide/directive
I like the So for any of my Angular declaration (e.g. |
출처 - http://stackoverflow.com/questions/12107504/angularjs-tags-attributes
'Development > AngularJS' 카테고리의 다른 글
angularjs - AngularJS & RequireJS (0) | 2014.02.03 |
---|---|
AngularJS (0) | 2013.10.13 |
data-X
is HTML5-compliant, since thedata-
prefix is for custom attributes.– Hugo Jun 23 at 8:19