Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

docs($compile): Explain that post-link functions run in reverse order. #4843

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/ng/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@
* 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
* 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`
Expand Down