diff options
| author | Jens Rantil | 2013-05-22 21:07:17 +0100 |
|---|---|---|
| committer | Pete Bacon Darwin | 2013-05-22 21:10:03 +0100 |
| commit | 38ffbbd7dd0a6382d1f1e870ca98d1f471942675 (patch) | |
| tree | 0593020ebb2f1144601c8c726ecacd462fb1805d /docs/content/guide | |
| parent | 47e1878e4c10507b669f5380c7ca2ea7e194b271 (diff) | |
| download | angular.js-38ffbbd7dd0a6382d1f1e870ca98d1f471942675.tar.bz2 | |
docs(guide/directive): clarify directive priority
Fixes #2644.
Diffstat (limited to 'docs/content/guide')
| -rw-r--r-- | docs/content/guide/directive.ngdoc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/content/guide/directive.ngdoc b/docs/content/guide/directive.ngdoc index def291f8..52132276 100644 --- a/docs/content/guide/directive.ngdoc +++ b/docs/content/guide/directive.ngdoc @@ -307,8 +307,9 @@ compiler}. The attributes are: * `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 - to sort the directives before their `compile` functions get called. Higher `priority` goes - first. The order of directives within the same priority is undefined. + to sort the directives before their `compile` functions get called. Priority is defined as a + 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 which will execute (any directives at the current priority will still execute |
