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

Commit 20eef05

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 a6d7b4b commit 20eef05

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
@@ -191,9 +191,9 @@
191191
*
192192
* * (no prefix) - Locate the required controller on the current element. Throw an error if not found.
193193
* * `?` - Attempt to locate the required controller or pass `null` to the `link` fn if not found.
194-
* * `^` - Locate the required controller by searching the element's parents. Throw an error if not found.
195-
* * `?^` - Attempt to locate the required controller by searching the element's parents or pass `null` to the
196-
* `link` fn if not found.
194+
* * `^` - Locate the required controller by searching the element and its parents. Throw an error if not found.
195+
* * `?^` - Attempt to locate the required controller by searching the element and its parents parents or pass
196+
* `null` to the `link` fn if not found.
197197
*
198198
*
199199
* #### `controllerAs`

0 commit comments

Comments
 (0)