PROJET AUTOBLOG


Shaarli - Les discussions de Shaarli

Archivé

Site original : Shaarli - Les discussions de Shaarli du 23/07/2013

⇐ retour index

angularjs - Angular directives - element or attribute? - Stack Overflow

vendredi 24 avril 2015 à 15:11
Les 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)