aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/guide/controller.ngdoc
diff options
context:
space:
mode:
authorPeter Bacon Darwin2014-02-13 23:22:02 +0000
committerPeter Bacon Darwin2014-02-16 19:03:43 +0000
commit457cf0a702d0af897e80c7bc6c196431c73fad8a (patch)
treed6cd25608adaced93e935f901de7ecd811b5346f /docs/content/guide/controller.ngdoc
parent8c121b94e7cfe9fd3e0f0acfb238a23156ea4093 (diff)
downloadangular.js-457cf0a702d0af897e80c7bc6c196431c73fad8a.tar.bz2
docs(examples): fix example dependencies
Diffstat (limited to 'docs/content/guide/controller.ngdoc')
-rw-r--r--docs/content/guide/controller.ngdoc6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/content/guide/controller.ngdoc b/docs/content/guide/controller.ngdoc
index 04dcf56c..cdcd3752 100644
--- a/docs/content/guide/controller.ngdoc
+++ b/docs/content/guide/controller.ngdoc
@@ -136,7 +136,7 @@ string "very". Depending on which button is clicked, the `spice` model is set to
<example module="spicyApp1">
<file name="index.html">
- <div ng-app="spicyApp1" ng-controller="SpicyCtrl">
+ <div ng-controller="SpicyCtrl">
<button ng-click="chiliSpicy()">Chili</button>
<button ng-click="jalapenoSpicy()">JalapeƱo</button>
<p>The food is {{spice}} spicy!</p>
@@ -177,7 +177,7 @@ previous example.
<example module="spicyApp2">
<file name="index.html">
- <div ng-app="spicyApp2" ng-controller="SpicyCtrl">
+ <div ng-controller="SpicyCtrl">
<input ng-model="customSpice">
<button ng-click="spicy('chili')">Chili</button>
<button ng-click="spicy(customSpice)">Custom spice</button>
@@ -214,7 +214,7 @@ more information about scope inheritance.
<example module="scopeInheritance">
<file name="index.html">
- <div ng-app="scopeInheritance" class="spicy">
+ <div class="spicy">
<div ng-controller="MainCtrl">
<p>Good {{timeOfDay}}, {{name}}!</p>