This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docs/content/guide/directive.ngdoc
docs(directive): fix typo
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
petebacondarwin
Contributor
|
||
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 | ||
|
Shouldn't
increment()
here becount = count + value
?