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

Commit

Permalink
Update docs/content/guide/directive.ngdoc
Browse files Browse the repository at this point in the history
docs(directive): fix typo
  • Loading branch information
mhevery committed Nov 6, 2012
1 parent b429f53 commit c6b4ab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/guide/directive.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ compiler}. The attributes are:
* `&` or `&attr` - provides a way to execute an expression in the context of the parent scope.
If no `attr` name is specified then the local name and attribute name are same.
Given `<widget my-attr="count = count + value">` and widget definition of
`scope: { localFn:'increment()' }`, then isolate scope property `localFn` will point to
`scope: { localFn:'&myAttr' }`, then isolate scope property `localFn` will point to
a function wrapper for the `increment()` expression. Often it's desirable to pass data from

This comment has been minimized.

Copy link
@mernen

mernen Nov 7, 2012

Contributor

Shouldn't increment() here be count = count + value?

This comment has been minimized.

Copy link
@petebacondarwin

petebacondarwin Nov 7, 2012

Contributor

What this means is that when increment is called on the isolated scope the expression count = count + value will be executed.

the isolate scope via an expression and to the parent scope, this can be done by passing a
map of local variable names and values into the expression wrapper fn. For example, if the
Expand Down

0 comments on commit c6b4ab3

Please sign in to comment.