@@ -32,9 +32,9 @@ In the following example we will build a form to calculate the costs of an invoi
3232Let's start with input fields for quantity and cost whose values are multiplied to produce the total of the invoice:
3333
3434
35- <example>
35+ <example name="guide-concepts-1" ng-app-included="true" >
3636 <file name="index.html">
37- <div ng-init="qty=1;cost=2">
37+ <div ng-app ng- init="qty=1;cost=2">
3838 <b>Invoice:</b>
3939 <div>
4040 Quantity: <input type="number" ng-model="qty" required >
@@ -102,7 +102,7 @@ The concept behind this is <a name="databinding">"{@link databinding two-way dat
102102Let's add some more logic to the example that allows us to enter and calculate the costs in
103103different currencies and also pay the invoice.
104104
105- <example module="invoice1" >
105+ <example name="guide-concepts-2" ng-app-included="true" >
106106 <file name="invoice1.js">
107107 angular.module('invoice1', [])
108108 .controller('InvoiceController', function() {
@@ -128,7 +128,7 @@ different currencies and also pay the invoice.
128128 });
129129 </file>
130130 <file name="index.html">
131- <div ng-controller="InvoiceController as invoice">
131+ <div ng-app="invoice1" ng- controller="InvoiceController as invoice">
132132 <b>Invoice:</b>
133133 <div>
134134 Quantity: <input type="number" ng-model="invoice.qty" required >
@@ -191,7 +191,7 @@ from the web, e.g. by calling the Yahoo Finance API, without changing the contro
191191
192192Let's refactor our example and move the currency conversion into a service in another file:
193193
194- <example module="invoice2 ">
194+ <example name="guide-concepts-2" ng-app-included="true ">
195195 <file name="finance2.js">
196196 angular.module('finance2', [])
197197 .factory('currencyConverter', function() {
@@ -228,7 +228,7 @@ Let's refactor our example and move the currency conversion into a service in an
228228 }]);
229229 </file>
230230 <file name="index.html">
231- <div ng-controller="InvoiceController as invoice">
231+ <div ng-app="invoice2" ng- controller="InvoiceController as invoice">
232232 <b>Invoice:</b>
233233 <div>
234234 Quantity: <input type="number" ng-model="invoice.qty" required >
@@ -302,7 +302,7 @@ to something shorter like `a`.
302302Let's finish our example by fetching the exchange rates from the Yahoo Finance API.
303303The following example shows how this is done with Angular:
304304
305- <example module="invoice3 ">
305+ <example name="guide-concepts-3" ng-app-included="true ">
306306 <file name="invoice3.js">
307307 angular.module('invoice3', ['finance3'])
308308 .controller('InvoiceController', ['currencyConverter', function(currencyConverter) {
@@ -356,7 +356,7 @@ The following example shows how this is done with Angular:
356356 }]);
357357 </file>
358358 <file name="index.html">
359- <div ng-controller="InvoiceController as invoice">
359+ <div ng-app="invoice3" ng- controller="InvoiceController as invoice">
360360 <b>Invoice:</b>
361361 <div>
362362 Quantity: <input type="number" ng-model="invoice.qty" required >
0 commit comments