diff options
| author | Jens Rantil | 2013-05-20 18:31:39 +0200 |
|---|---|---|
| committer | Pete Bacon Darwin | 2013-05-21 13:18:59 +0100 |
| commit | 2cb73b71d1e9ed16b9b2e68f8b8a6dcb1d4ac862 (patch) | |
| tree | 28ae8fd5f957396e88e8f6a46eb133ed396b03d8 /docs/content/guide/directive.ngdoc | |
| parent | 16a2ce2b13cf8f235947371cfb12215f661bb5a1 (diff) | |
| download | angular.js-2cb73b71d1e9ed16b9b2e68f8b8a6dcb1d4ac862.tar.bz2 | |
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
Diffstat (limited to 'docs/content/guide/directive.ngdoc')
| -rw-r--r-- | docs/content/guide/directive.ngdoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/guide/directive.ngdoc b/docs/content/guide/directive.ngdoc index 176d6c62..def291f8 100644 --- a/docs/content/guide/directive.ngdoc +++ b/docs/content/guide/directive.ngdoc @@ -445,8 +445,8 @@ done in a linking function rather than in a compile function. A compile function can have a return value which can be either a function or an object. -* returning a function - is equivalent to registering the linking function via the `link` property - of the config object when the compile function is empty. +* returning a (post-link) function - is equivalent to registering the linking function via the + `link` property of the config object when the compile function is empty. * returning an object with function(s) registered via `pre` and `post` properties - allows you to control when a linking function should be called during the linking phase. See info about |
