From eec78e78d6d2dd9d218bb46a8ebdfbfe357b9065 Mon Sep 17 00:00:00 2001 From: Chatchavan Wacharamanotham Date: Wed, 12 Nov 2014 11:24:48 +0100 Subject: [PATCH] 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 #10018 --- docs/content/guide/compiler.ngdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/guide/compiler.ngdoc b/docs/content/guide/compiler.ngdoc index d6e1743a..cda0d637 100644 --- a/docs/content/guide/compiler.ngdoc +++ b/docs/content/guide/compiler.ngdoc @@ -332,7 +332,7 @@ The first issue we have to solve is that the dialog box template expects `title` But we would like the template's scope property `title` to be the result of interpolating the `` element's `title` attribute (i.e. `"Hello {{username}}"`). Furthermore, the buttons expect the `onOk` and `onCancel` functions to be present in the scope. This limits the usefulness of the -widget. To solve the mapping issue we use the `locals` to create local variables which the template +widget. To solve the mapping issue we use the `scope` to create local variables which the template expects as follows: ```js