aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Field2013-11-08 14:08:03 -0800
committerPete Bacon Darwin2013-11-13 21:58:04 +0000
commitb2137c9fdfd807e1c295e54b0aa6221c8dddb506 (patch)
treea07377b3c7ba4eb1b415237306766a36c1701d4a /src
parentbee56a82b0375e10ade4cbca375489f7ebf59b0c (diff)
downloadangular.js-b2137c9fdfd807e1c295e54b0aa6221c8dddb506.tar.bz2
docs($compile): Explain that post-link functions run in reverse order.
Update the $compile docs to mention the change introduced in #4266. Closes #4843
Diffstat (limited to 'src')
-rw-r--r--src/ng/compile.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ng/compile.js b/src/ng/compile.js
index d197bbe1..0b818535 100644
--- a/src/ng/compile.js
+++ b/src/ng/compile.js
@@ -115,8 +115,9 @@
* 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. 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`.
+ * number. Directives with greater numerical `priority` are compiled first. Pre-link functions
+ * are also run in priority order, but post-link functions are run in reverse order. 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