Skip to content

Commit

Permalink
docs($compile): Explain that post-link functions run in reverse order.
Browse files Browse the repository at this point in the history
Update the $compile docs to mention the change introduced in angular#4266.

Closes angular#4843
  • Loading branch information
Martin Field authored and jamesdaily committed Jan 27, 2014
1 parent 4e77014 commit ba262f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ng/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba262f9

Please sign in to comment.