angularjs - Angular directives - element or attribute? - Stack Overflow
vendredi 24 avril 2015 à 15:11Les liens de Tom 24/04/2015
«The angular guidance says that you should use the "element" restriction whenever the directive has full control over it's template meaning it has a template that it is rendering out, etc.
For attributes, they suggest to use these only when you are adding "behavior" to an existing element or decorating an existing element.»
(Permalink)
«The angular guidance says that you should use the "element" restriction whenever the directive has full control over it's template meaning it has a template that it is rendering out, etc.
For attributes, they suggest to use these only when you are adding "behavior" to an existing element or decorating an existing element.»
(Permalink)