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

Commit

Permalink
docs($compile): correct documentation for directive controller ^ no…
Browse files Browse the repository at this point in the history
…tation

`^` searches the element and its parents, not exclusively the element's parents. This confuses
a lot of people :(

Closes #8622
  • Loading branch information
Izhaki authored and caitp committed Aug 19, 2014
1 parent b8e54ef commit d250dd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ng/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@
*
* * (no prefix) - Locate the required controller on the current element. Throw an error if not found.
* * `?` - Attempt to locate the required controller or pass `null` to the `link` fn if not found.
* * `^` - Locate the required controller by searching the element's parents. Throw an error if not found.
* * `?^` - Attempt to locate the required controller by searching the element's parents or pass `null` to the
* `link` fn if not found.
* * `^` - Locate the required controller by searching the element and its parents. Throw an error if not found.
* * `?^` - Attempt to locate the required controller by searching the element and its parents parents or pass
* `null` to the `link` fn if not found.
*
*
* #### `controllerAs`
Expand Down

0 comments on commit d250dd4

Please sign in to comment.