Outils pour utilisateurs

Outils du site


angular:concepts

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
angular:concepts [2014/05/03 13:14]
djiko
angular:concepts [2016/10/17 13:56] (Version actuelle)
Ligne 26: Ligne 26:
   * Attributs   * Attributs
     * restrict: restriction d'​usage. '​A'​ pour Attribute, '​E'​ pour Element, '​C'​ pour Class, '​M'​ pour commentaire. Peuvent être combinés.     * restrict: restriction d'​usage. '​A'​ pour Attribute, '​E'​ pour Element, '​C'​ pour Class, '​M'​ pour commentaire. Peuvent être combinés.
-    replace: ​This replaces the markup in the DOM that defines the directive, used in the example, you'll notice how initial DOM is replaced with the Directive'​s template+    ​replace: ​booleén. Permet de remplacer le contenu de l'élément
-    transclude: ​Put simply, using transclude allows for existing DOM content to be copied into the directive. You'll see the words 'Click me' ​have '​moved'​ into the Directive once rendered+    ​transclude: ​Récupère le contenu de l'élément et l'injecte dans l'élément produit par la directive
-    template: ​A template (as above) allows you to declare markup to be injected. It's a good idea to use this for tiny pieces of HTML only. Injected templates are all compiled through Angular, which means you can declare the handlebar template tags in them too for binding+    ​template: ​comme son nom l'indique
-    templateUrl: ​Similar to a template, ​but kept in it's own file or <​script>​ tag. You can do this to specify a template ​URL, which you'll want to use for manageable chunks of HTML that require being kept in their own file, just specify the path and filename, preferably kept inside their own templates directory:​ +    ​templateUrl: ​la même chose que template, ​mais soous forme d'​URL ​pointant vers une ressource
 ===== Data binding ===== ===== Data binding =====
 ===== Filter ===== ===== Filter =====
angular/concepts.txt · Dernière modification: 2016/10/17 13:56 (modification externe)