Skip to content

Commit 7f857e4

Browse files
chatchavancaitp
authored andcommitted
docs(guide/compiler): replaced 'locals' with 'scope'
In "Understanding How Scopes Work with Transcluded Directives" section, a text referred to an obsolete 'locals' instead of 'scope'. Closes angular#10018
1 parent be6920b commit 7f857e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/guide/compiler.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ The first issue we have to solve is that the dialog box template expects `title`
332332
But we would like the template's scope property `title` to be the result of interpolating the
333333
`<dialog>` element's `title` attribute (i.e. `"Hello {{username}}"`). Furthermore, the buttons expect
334334
the `onOk` and `onCancel` functions to be present in the scope. This limits the usefulness of the
335-
widget. To solve the mapping issue we use the `locals` to create local variables which the template
335+
widget. To solve the mapping issue we use the `scope` to create local variables which the template
336336
expects as follows:
337337

338338
```js

0 commit comments

Comments
 (0)