Skip to content

Commit 457cf0a

Browse files
docs(examples): fix example dependencies
1 parent 8c121b9 commit 457cf0a

10 files changed

Lines changed: 14 additions & 14 deletions

File tree

docs/content/guide/animations.ngdoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Animations are not available unless you include the {@link ngAnimate `ngAnimate`
1515

1616
Below is a quick example of animations being enabled for `ngShow` and `ngHide`:
1717

18-
<example animations="true">
18+
<example module="ngAnimate" deps="angular-animate.js" animations="true">
1919
<file name="index.html">
2020
<div ng-init="checked=true">
2121
<label>
@@ -214,7 +214,7 @@ able to capture class changes if an **expression** or the **ng-class** directive
214214

215215
The example below shows how to perform animations during class changes:
216216

217-
<example animations="true">
217+
<example module="ngAnimate" deps="angular-animate.js" animations="true">
218218
<file name="index.html">
219219
<p>
220220
<input type="button" value="set" ng-click="myCssVar='css-class'">

docs/content/guide/controller.ngdoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ string "very". Depending on which button is clicked, the `spice` model is set to
136136

137137
<example module="spicyApp1">
138138
<file name="index.html">
139-
<div ng-app="spicyApp1" ng-controller="SpicyCtrl">
139+
<div ng-controller="SpicyCtrl">
140140
<button ng-click="chiliSpicy()">Chili</button>
141141
<button ng-click="jalapenoSpicy()">Jalapeño</button>
142142
<p>The food is {{spice}} spicy!</p>
@@ -177,7 +177,7 @@ previous example.
177177

178178
<example module="spicyApp2">
179179
<file name="index.html">
180-
<div ng-app="spicyApp2" ng-controller="SpicyCtrl">
180+
<div ng-controller="SpicyCtrl">
181181
<input ng-model="customSpice">
182182
<button ng-click="spicy('chili')">Chili</button>
183183
<button ng-click="spicy(customSpice)">Custom spice</button>
@@ -214,7 +214,7 @@ more information about scope inheritance.
214214

215215
<example module="scopeInheritance">
216216
<file name="index.html">
217-
<div ng-app="scopeInheritance" class="spicy">
217+
<div class="spicy">
218218
<div ng-controller="MainCtrl">
219219
<p>Good {{timeOfDay}}, {{name}}!</p>
220220

src/ng/directive/ngClass.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function classDirective(name, selector) {
150150
151151
The example below demonstrates how to perform animations using ngClass.
152152
153-
<example animations="true">
153+
<example module="ngAnimate" deps="angular-animate.js" animations="true">
154154
<file name="index.html">
155155
<input id="setbtn" type="button" value="set" ng-click="myVar='my-class'">
156156
<input id="clearbtn" type="button" value="clear" ng-click="myVar=''">

src/ng/directive/ngIf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
* element is added to the DOM tree.
4545
*
4646
* @example
47-
<example animations="true">
47+
<example module="ngAnimate" deps="angular-animate.js" animations="true">
4848
<file name="index.html">
4949
Click me: <input type="checkbox" ng-model="checked" ng-init="checked=true" /><br/>
5050
Show when checked:

src/ng/directive/ngInclude.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* - Otherwise enable scrolling only if the expression evaluates to truthy value.
4444
*
4545
* @example
46-
<example animations="true">
46+
<example module="ngAnimate" deps="angular-animate.js" animations="true">
4747
<file name="index.html">
4848
<div ng-controller="Ctrl">
4949
<select ng-model="template" ng-options="t.name for t in templates">

src/ng/directive/ngRepeat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
* @example
114114
* This example initializes the scope to a list of names and
115115
* then uses `ngRepeat` to display every person:
116-
<example animations="true">
116+
<example module="ngAnimate" deps="angular-animate.js" animations="true">
117117
<file name="index.html">
118118
<div ng-init="friends = [
119119
{name:'John', age:25, gender:'boy'},

src/ng/directive/ngShowHide.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
* then the element is shown or hidden respectively.
8989
*
9090
* @example
91-
<example animations="true">
91+
<example module="ngAnimate" deps="angular-animate.js" animations="true">
9292
<file name="index.html">
9393
Click me: <input type="checkbox" ng-model="checked"><br/>
9494
<div>
@@ -245,7 +245,7 @@ var ngShowDirective = ['$animate', function($animate) {
245245
* the element is shown or hidden respectively.
246246
*
247247
* @example
248-
<example animations="true">
248+
<example module="ngAnimate" deps="angular-animate.js" animations="true">
249249
<file name="index.html">
250250
Click me: <input type="checkbox" ng-model="checked"><br/>
251251
<div>

src/ng/directive/ngSwitch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
*
5454
*
5555
* @example
56-
<example animations="true">
56+
<example module="ngAnimate" deps="angular-animate.js" animations="true">
5757
<file name="index.html">
5858
<div ng-controller="Ctrl">
5959
<select ng-model="selection" ng-options="item for item in items">

src/ngRoute/directive/ngView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ ngRouteModule.directive('ngView', ngViewFillContentFactory);
3636
* - Otherwise enable scrolling only if the `autoscroll` attribute value evaluated
3737
* as an expression yields a truthy value.
3838
* @example
39-
<example module="ngViewExample" deps="angular-route.js" animations="true">
39+
<example module="ngViewExample" deps="angular-route.js;angular-animate.js" animations="true">
4040
<file name="index.html">
4141
<div ng-controller="MainCntl as main">
4242
Choose:

src/ngSanitize/filter/linky.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<span ng-bind-html="linky_expression | linky"></span>
2222
*
2323
* @example
24-
<example module="ngSanitize">
24+
<example module="ngSanitize" deps="angular-sanitize.js">
2525
<file name="index.html">
2626
<script>
2727
function Ctrl($scope) {

0 commit comments

Comments
 (0)