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

Commit 7f597a7

Browse files
Jens Rantilpetebacondarwin
Jens Rantil
authored andcommitted
doc($compile): clarify compile function return value
If a compile function (within a directive) returns a function, it is a post-link function. Closes: #2713
1 parent 907d2f5 commit 7f597a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content/guide/directive.ngdoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,8 @@ done in a linking function rather than in a compile function.
480480

481481
A compile function can have a return value which can be either a function or an object.
482482

483-
* returning a function - is equivalent to registering the linking function via the `link` property
484-
of the config object when the compile function is empty.
483+
* returning a (post-link) function - is equivalent to registering the linking function via the
484+
`link` property of the config object when the compile function is empty.
485485

486486
* returning an object with function(s) registered via `pre` and `post` properties - allows you to
487487
control when a linking function should be called during the linking phase. See info about

0 commit comments

Comments
 (0)