docs(guide/directive): clarify directive priority

Fixes #2644.
This commit is contained in:
Jens Rantil 2013-05-22 21:07:17 +01:00 committed by Pete Bacon Darwin
parent 47e1878e4c
commit 38ffbbd7dd

View file

@ -307,8 +307,9 @@ compiler}. The attributes are:
* `priority` - When there are multiple directives defined on a single DOM element, sometimes it * `priority` - When there are multiple directives defined on a single DOM element, sometimes it
is necessary to specify the order in which the directives are applied. The `priority` is used is necessary to specify the order in which the directives are applied. The `priority` is used
to sort the directives before their `compile` functions get called. Higher `priority` goes to sort the directives before their `compile` functions get called. Priority is defined as a
first. The order of directives within the same priority is undefined. number. Directives with greater numerical `priority` are compiled first. The order of directives with
the same priority is undefined. The default priority is `0`.
* `terminal` - If set to true then the current `priority` will be the last set of directives * `terminal` - If set to true then the current `priority` will be the last set of directives
which will execute (any directives at the current priority will still execute which will execute (any directives at the current priority will still execute