aboutsummaryrefslogtreecommitdiffstats
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
parent8c121b94e7cfe9fd3e0f0acfb238a23156ea4093 (diff)
downloadangular.js-457cf0a702d0af897e80c7bc6c196431c73fad8a.tar.bz2
docs(examples): fix example dependencies
-rw-r--r--docs/content/guide/animations.ngdoc4
-rw-r--r--docs/content/guide/controller.ngdoc6
-rw-r--r--src/ng/directive/ngClass.js2
-rw-r--r--src/ng/directive/ngIf.js2
-rw-r--r--src/ng/directive/ngInclude.js2
-rw-r--r--src/ng/directive/ngRepeat.js2
-rw-r--r--src/ng/directive/ngShowHide.js4
-rw-r--r--src/ng/directive/ngSwitch.js2
-rw-r--r--src/ngRoute/directive/ngView.js2
-rw-r--r--src/ngSanitize/filter/linky.js2
10 files changed, 14 insertions, 14 deletions
diff --git a/docs/content/guide/animations.ngdoc b/docs/content/guide/animations.ngdoc
index 0cf08eb7..19147145 100644
--- a/docs/content/guide/animations.ngdoc
+++ b/docs/content/guide/animations.ngdoc
@@ -15,7 +15,7 @@ Animations are not available unless you include the {@link ngAnimate `ngAnimate`
Below is a quick example of animations being enabled for `ngShow` and `ngHide`:
-<example animations="true">
+<example module="ngAnimate" deps="angular-animate.js" animations="true">
<file name="index.html">
<div ng-init="checked=true">
<label>
@@ -214,7 +214,7 @@ able to capture class changes if an **expression** or the **ng-class** directive
The example below shows how to perform animations during class changes:
-<example animations="true">
+<example module="ngAnimate" deps="angular-animate.js" animations="true">
<file name="index.html">
<p>
<input type="button" value="set" ng-click="myCssVar='css-class'">
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>
diff --git a/src/ng/directive/ngClass.js b/src/ng/directive/ngClass.js
index fa6d81b2..595b4419 100644
--- a/src/ng/directive/ngClass.js
+++ b/src/ng/directive/ngClass.js
@@ -150,7 +150,7 @@ function classDirective(name, selector) {
The example below demonstrates how to perform animations using ngClass.
- <example animations="true">
+ <example module="ngAnimate" deps="angular-animate.js" animations="true">
<file name="index.html">
<input id="setbtn" type="button" value="set" ng-click="myVar='my-class'">
<input id="clearbtn" type="button" value="clear" ng-click="myVar=''">
diff --git a/src/ng/directive/ngIf.js b/src/ng/directive/ngIf.js
index 2aaaf2dd..000fba82 100644
--- a/src/ng/directive/ngIf.js
+++ b/src/ng/directive/ngIf.js
@@ -44,7 +44,7 @@
* element is added to the DOM tree.
*
* @example
- <example animations="true">
+ <example module="ngAnimate" deps="angular-animate.js" animations="true">
<file name="index.html">
Click me: <input type="checkbox" ng-model="checked" ng-init="checked=true" /><br/>
Show when checked:
diff --git a/src/ng/directive/ngInclude.js b/src/ng/directive/ngInclude.js
index 1d3c7246..09f03895 100644
--- a/src/ng/directive/ngInclude.js
+++ b/src/ng/directive/ngInclude.js
@@ -43,7 +43,7 @@
* - Otherwise enable scrolling only if the expression evaluates to truthy value.
*
* @example
- <example animations="true">
+ <example module="ngAnimate" deps="angular-animate.js" animations="true">
<file name="index.html">
<div ng-controller="Ctrl">
<select ng-model="template" ng-options="t.name for t in templates">
diff --git a/src/ng/directive/ngRepeat.js b/src/ng/directive/ngRepeat.js
index d2c2027b..c6a9bda3 100644
--- a/src/ng/directive/ngRepeat.js
+++ b/src/ng/directive/ngRepeat.js
@@ -113,7 +113,7 @@
* @example
* This example initializes the scope to a list of names and
* then uses `ngRepeat` to display every person:
- <example animations="true">
+ <example module="ngAnimate" deps="angular-animate.js" animations="true">
<file name="index.html">
<div ng-init="friends = [
{name:'John', age:25, gender:'boy'},
diff --git a/src/ng/directive/ngShowHide.js b/src/ng/directive/ngShowHide.js
index c22708c5..303db9c4 100644
--- a/src/ng/directive/ngShowHide.js
+++ b/src/ng/directive/ngShowHide.js
@@ -88,7 +88,7 @@
* then the element is shown or hidden respectively.
*
* @example
- <example animations="true">
+ <example module="ngAnimate" deps="angular-animate.js" animations="true">
<file name="index.html">
Click me: <input type="checkbox" ng-model="checked"><br/>
<div>
@@ -245,7 +245,7 @@ var ngShowDirective = ['$animate', function($animate) {
* the element is shown or hidden respectively.
*
* @example
- <example animations="true">
+ <example module="ngAnimate" deps="angular-animate.js" animations="true">
<file name="index.html">
Click me: <input type="checkbox" ng-model="checked"><br/>
<div>
diff --git a/src/ng/directive/ngSwitch.js b/src/ng/directive/ngSwitch.js
index 59cef79b..92594978 100644
--- a/src/ng/directive/ngSwitch.js
+++ b/src/ng/directive/ngSwitch.js
@@ -53,7 +53,7 @@
*
*
* @example
- <example animations="true">
+ <example module="ngAnimate" deps="angular-animate.js" animations="true">
<file name="index.html">
<div ng-controller="Ctrl">
<select ng-model="selection" ng-options="item for item in items">
diff --git a/src/ngRoute/directive/ngView.js b/src/ngRoute/directive/ngView.js
index 46812430..1c082962 100644
--- a/src/ngRoute/directive/ngView.js
+++ b/src/ngRoute/directive/ngView.js
@@ -36,7 +36,7 @@ ngRouteModule.directive('ngView', ngViewFillContentFactory);
* - Otherwise enable scrolling only if the `autoscroll` attribute value evaluated
* as an expression yields a truthy value.
* @example
- <example module="ngViewExample" deps="angular-route.js" animations="true">
+ <example module="ngViewExample" deps="angular-route.js;angular-animate.js" animations="true">
<file name="index.html">
<div ng-controller="MainCntl as main">
Choose:
diff --git a/src/ngSanitize/filter/linky.js b/src/ngSanitize/filter/linky.js
index d5471b25..15d5afa2 100644
--- a/src/ngSanitize/filter/linky.js
+++ b/src/ngSanitize/filter/linky.js
@@ -21,7 +21,7 @@
<span ng-bind-html="linky_expression | linky"></span>
*
* @example
- <example module="ngSanitize">
+ <example module="ngSanitize" deps="angular-sanitize.js">
<file name="index.html">
<script>
function Ctrl($scope) {