From f7b36844e604008d7ba32ce956ea6bca59b06dcf Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Tue, 18 Mar 2014 07:07:36 +0000 Subject: docs(guide/concepts): move ng-app into example text Closes #6639 --- docs/content/guide/concepts.ngdoc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'docs') diff --git a/docs/content/guide/concepts.ngdoc b/docs/content/guide/concepts.ngdoc index 63ec1bcf..8d178aa7 100644 --- a/docs/content/guide/concepts.ngdoc +++ b/docs/content/guide/concepts.ngdoc @@ -32,9 +32,9 @@ In the following example we will build a form to calculate the costs of an invoi Let's start with input fields for quantity and cost whose values are multiplied to produce the total of the invoice: - + -
+
Invoice:
Quantity: @@ -102,7 +102,7 @@ The concept behind this is "{@link databinding two-way dat Let's add some more logic to the example that allows us to enter and calculate the costs in different currencies and also pay the invoice. - + angular.module('invoice1', []) .controller('InvoiceController', function() { @@ -128,7 +128,7 @@ different currencies and also pay the invoice. }); -
+
Invoice:
Quantity: @@ -191,7 +191,7 @@ from the web, e.g. by calling the Yahoo Finance API, without changing the contro Let's refactor our example and move the currency conversion into a service in another file: - + angular.module('finance2', []) .factory('currencyConverter', function() { @@ -228,7 +228,7 @@ Let's refactor our example and move the currency conversion into a service in an }]); -
+
Invoice:
Quantity: @@ -302,7 +302,7 @@ to something shorter like `a`. Let's finish our example by fetching the exchange rates from the Yahoo Finance API. The following example shows how this is done with Angular: - + angular.module('invoice3', ['finance3']) .controller('InvoiceController', ['currencyConverter', function(currencyConverter) { @@ -356,7 +356,7 @@ The following example shows how this is done with Angular: }]); -
+
Invoice:
Quantity: -- cgit v1.2.3