Skip to content

Commit c6b4ab3

Browse files
committed
Update docs/content/guide/directive.ngdoc
docs(directive): fix typo
1 parent b429f53 commit c6b4ab3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/guide/directive.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ compiler}. The attributes are:
339339
* `&` or `&attr` - provides a way to execute an expression in the context of the parent scope.
340340
If no `attr` name is specified then the local name and attribute name are same.
341341
Given `<widget my-attr="count = count + value">` and widget definition of
342-
`scope: { localFn:'increment()' }`, then isolate scope property `localFn` will point to
342+
`scope: { localFn:'&myAttr' }`, then isolate scope property `localFn` will point to
343343
a function wrapper for the `increment()` expression. Often it's desirable to pass data from
344344
the isolate scope via an expression and to the parent scope, this can be done by passing a
345345
map of local variable names and values into the expression wrapper fn. For example, if the

0 commit comments

Comments
 (0)