aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/guide/compiler.ngdoc
diff options
context:
space:
mode:
authorPete Bacon Darwin2013-10-26 20:07:00 +0100
committerPete Bacon Darwin2013-10-26 20:07:00 +0100
commit256fcb68842bfde2e4f1deef9eaa262753558732 (patch)
tree6173ee0b497f7fb7b1d508e624883f490dd992cc /docs/content/guide/compiler.ngdoc
parent9453c610935b2e872215f0c6a223b24ba8b4ea7f (diff)
downloadangular.js-256fcb68842bfde2e4f1deef9eaa262753558732.tar.bz2
docs(guide/compiler): clarify wording
Closes #4668
Diffstat (limited to 'docs/content/guide/compiler.ngdoc')
-rw-r--r--docs/content/guide/compiler.ngdoc7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/content/guide/compiler.ngdoc b/docs/content/guide/compiler.ngdoc
index 6f896f84..1675b7aa 100644
--- a/docs/content/guide/compiler.ngdoc
+++ b/docs/content/guide/compiler.ngdoc
@@ -323,9 +323,10 @@ Here is an example of what the template definition for the `dialog` widget may l
This will not render properly, unless we do some scope magic.
-The first issue we have to solve is that the dialog box template expects `title` to be defined, but
-the place of instantiation would like to bind to `username`. Furthermore the buttons expect the
-`onOk` and `onCancel` functions to be present in the scope. This limits the usefulness of the
+The first issue we have to solve is that the dialog box template expects `title` to be defined.
+But we would like the template's scope property `title` to be the result of interpolating the
+`<dialog>` 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
expects as follows: