diff options
| author | Lucas Galfasó | 2013-01-13 04:08:43 -0300 | 
|---|---|---|
| committer | Pete Bacon Darwin | 2013-01-13 10:08:19 +0000 | 
| commit | c0cb9f8c14def36cc894fad4146b599531163f61 (patch) | |
| tree | cd49fefc29bbfc46aa4a607eafd44f53515e976b /docs/content/guide/directive.ngdoc | |
| parent | 7dff7bb69695f89046272bf31b2b60f0431f1f30 (diff) | |
| download | angular.js-c0cb9f8c14def36cc894fad4146b599531163f61.tar.bz2 | |
doc(directive): Fix typos in dialog widget
Fixes #1799
Diffstat (limited to 'docs/content/guide/directive.ngdoc')
| -rw-r--r-- | docs/content/guide/directive.ngdoc | 15 | 
1 files changed, 9 insertions, 6 deletions
| diff --git a/docs/content/guide/directive.ngdoc b/docs/content/guide/directive.ngdoc index 3a97db44..3d669b1b 100644 --- a/docs/content/guide/directive.ngdoc +++ b/docs/content/guide/directive.ngdoc @@ -528,6 +528,7 @@ dialog component may work.              on-ok="show = false; doSomething()">         Body goes here: {{username}} is {{title}}.      </dialog> +  </div>  </pre>  Clicking on the "show" button will open the dialog. The dialog will have a title, which is @@ -537,7 +538,7 @@ into the dialog.  Here is an example of what the template definition for the `dialog` widget may look like.  <pre> -  <div ng-show="show"> +  <div ng-show="visible">      <h3>{{title}}</h3>      <div class="body" ng-transclude></div>      <div class="footer"> @@ -557,10 +558,10 @@ expects as follows:  <pre>    scope: { -    title: '=',             // set up title to accept data-binding +    title: '@',             // the title uses the data-binding from the parent scope      onOk: '&',              // create a delegate onOk function      onCancel: '&',          // create a delegate onCancel function -    show: '=' +    visible: '='            // set up visible to accept data-binding    }  </pre> @@ -591,11 +592,13 @@ Therefore the final directive definition looks something like this:  <pre>  transclude: true,  scope: { -    title: '=',             // set up title to accept data-binding +    title: '@',             // the title uses the data-binding from the parent scope      onOk: '&',              // create a delegate onOk function      onCancel: '&',          // create a delegate onCancel function -    show: '=' -} +    visible: '='            // set up visible to accept data-binding +}, +restrict: 'E', +replace: true  </pre>  # Creating Components | 
