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

Commit 5f7054b

Browse files
mernenpkozlowski-opensource
authored andcommitted
docs(directive): correct expression, fix typo and re-wrap lines
1 parent cf4ed8a commit 5f7054b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/content/guide/directive.ngdoc

+5-5
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,11 @@ compiler}. The attributes are:
342342
If no `attr` name is specified then the attribute name is assumed to be the same as the
343343
local name. Given `<widget my-attr="count = count + value">` and widget definition of
344344
`scope: { localFn:'&myAttr' }`, then isolate scope property `localFn` will point to
345-
a function wrapper for the `increment()` expression. Often it's desirable to pass data from
346-
the isolate scope via an expression and to the parent scope, this can be done by passing a
347-
map of local variable names and values into the expression wrapper fn. For example, if the
348-
expression is `increment(amount)` then we can specify the amount value by calling the
349-
`localFn` as `localFn({amount: 22})`.
345+
a function wrapper for the `count = count + value` expression. Often it's desirable to
346+
pass data from the isolated scope via an expression and to the parent scope, this can be
347+
done by passing a map of local variable names and values into the expression wrapper fn.
348+
For example, if the expression is `increment(amount)` then we can specify the amount value
349+
by calling the `localFn` as `localFn({amount: 22})`.
350350

351351
* `controller` - Controller constructor function. The controller is instantiated before the
352352
pre-linking phase and it is shared with other directives if they request it by name (see

0 commit comments

Comments
 (0)