Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 38ffbbd

Browse files
Jens Rantilpetebacondarwin
Jens Rantil
authored andcommitted
docs(guide/directive): clarify directive priority
Fixes angular#2644.
1 parent 47e1878 commit 38ffbbd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/content/guide/directive.ngdoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,9 @@ compiler}. The attributes are:
307307

308308
* `priority` - When there are multiple directives defined on a single DOM element, sometimes it
309309
is necessary to specify the order in which the directives are applied. The `priority` is used
310-
to sort the directives before their `compile` functions get called. Higher `priority` goes
311-
first. The order of directives within the same priority is undefined.
310+
to sort the directives before their `compile` functions get called. Priority is defined as a
311+
number. Directives with greater numerical `priority` are compiled first. The order of directives with
312+
the same priority is undefined. The default priority is `0`.
312313

313314
* `terminal` - If set to true then the current `priority` will be the last set of directives
314315
which will execute (any directives at the current priority will still execute

0 commit comments

Comments
 (0)