From f29d6d865d40334d363b3fb9fc1664dd906fd034 Mon Sep 17 00:00:00 2001 From: Izhaki Date: Fri, 15 Aug 2014 12:35:47 +0100 Subject: [PATCH] Fixed documentation for controller `^` search Added 'current element' to 'its parents'. --- src/ng/compile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ng/compile.js b/src/ng/compile.js index 175efc13211e..4d5bcc7be6b0 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -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`