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

Commit d250dd4

Browse files
Izhakicaitp
authored andcommitted
docs($compile): correct documentation for directive controller ^ notation
`^` searches the element and its parents, not exclusively the element's parents. This confuses a lot of people :( Closes #8622
1 parent b8e54ef commit d250dd4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ng/compile.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@
198198
*
199199
* * (no prefix) - Locate the required controller on the current element. Throw an error if not found.
200200
* * `?` - Attempt to locate the required controller or pass `null` to the `link` fn if not found.
201-
* * `^` - Locate the required controller by searching the element's parents. Throw an error if not found.
202-
* * `?^` - Attempt to locate the required controller by searching the element's parents or pass `null` to the
203-
* `link` fn if not found.
201+
* * `^` - Locate the required controller by searching the element and its parents. Throw an error if not found.
202+
* * `?^` - Attempt to locate the required controller by searching the element and its parents parents or pass
203+
* `null` to the `link` fn if not found.
204204
*
205205
*
206206
* #### `controllerAs`

0 commit comments

Comments
 (0)