Skip to content

Commit d0f8bd3

Browse files
blaise-iomatsko
authored andcommitted
docs($animate): require ngAnimate in example, syntax fixes
The example in the section "JavaScript-defined Animations" would not run without the ngAnimate dependency. Also added a missing comma and semicolons.
1 parent 1a8d3c8 commit d0f8bd3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ngAnimate/animate.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
*
191191
* <pre>
192192
* //!annotate="YourApp" Your AngularJS Module|Replace this or ngModule with the module that you used to define your application.
193-
* var ngModule = angular.module('YourApp', []);
193+
* var ngModule = angular.module('YourApp', ['ngAnimate']);
194194
* ngModule.animation('.my-crazy-animation', function() {
195195
* return {
196196
* enter: function(element, done) {
@@ -199,8 +199,8 @@
199199
* //this (optional) function will be called when the animation
200200
* //completes or when the animation is cancelled (the cancelled
201201
* //flag will be set to true if cancelled).
202-
* }
203-
* }
202+
* };
203+
* },
204204
* leave: function(element, done) { },
205205
* move: function(element, done) { },
206206
*
@@ -215,7 +215,7 @@
215215
*
216216
* //animation that can be triggered after the class is removed
217217
* removeClass: function(element, className, done) { }
218-
* }
218+
* };
219219
* });
220220
* </pre>
221221
*

0 commit comments

Comments
 (0)