diff options
| author | Misko Hevery | 2012-05-24 15:29:51 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2012-06-02 16:02:09 -0700 | 
| commit | 073e76f8353ca3f743ea61ff21f7de7b1e5a7701 (patch) | |
| tree | 46f5964621ee99d7a65d213d95f35416578ce341 /docs/content/guide/overview.ngdoc | |
| parent | 7019f142ab79940eb4fc5b26fdcfdf2caf1d2b73 (diff) | |
| download | angular.js-073e76f8353ca3f743ea61ff21f7de7b1e5a7701.tar.bz2 | |
doc(guide): corrected examples
Diffstat (limited to 'docs/content/guide/overview.ngdoc')
| -rw-r--r-- | docs/content/guide/overview.ngdoc | 24 | 
1 files changed, 12 insertions, 12 deletions
diff --git a/docs/content/guide/overview.ngdoc b/docs/content/guide/overview.ngdoc index afd314b7..71eb90e9 100644 --- a/docs/content/guide/overview.ngdoc +++ b/docs/content/guide/overview.ngdoc @@ -75,14 +75,14 @@ concepts which the application developer may face:    * computing new values based on the model.    * formatting output in a user specific locale. -<doc-example> -  <doc-source> -    <script> -      function InvoiceCntl($scope) { -        $scope.qty = 1; -        $scope.cost = 19.95; -      } -    </script> +<example> +  <file name="script.js"> +    function InvoiceCntl($scope) { +      $scope.qty = 1; +      $scope.cost = 19.95; +    } +  </file> +  <file name="index.html">      <div ng-controller="InvoiceCntl">        <b>Invoice:</b>        <br> @@ -97,16 +97,16 @@ concepts which the application developer may face:        <hr>        <b>Total:</b> {{qty * cost | currency}}      </div> -  </doc-source> -  <doc-scenario> +  </file> +  <file name="scenario.js">      it('should show of angular binding', function() {        expect(binding('qty * cost')).toEqual('$19.95');        input('qty').enter('2');        input('cost').enter('5.00');        expect(binding('qty * cost')).toEqual('$10.00');      }); -  </doc-scenario> -</doc-example> +  </file> +</example>  Try out the Live Preview above, and then let's walk through the example and describe what's going  on.  | 
