aboutsummaryrefslogtreecommitdiffstats
path: root/src/ngAnimate/animate.js
diff options
context:
space:
mode:
authorBlaise Kal2013-12-02 10:44:27 +0100
committerMatias Niemelä2013-12-02 14:55:34 -0500
commitd0f8bd30a6c53f00c1206021f68330cb5e8eda37 (patch)
tree036f4814f7fe5c57f6bfa2079c26b65a0ae7454b /src/ngAnimate/animate.js
parent1a8d3c8b3a0d662fb3b8f2765102e50f7cd1c0a4 (diff)
downloadangular.js-d0f8bd30a6c53f00c1206021f68330cb5e8eda37.tar.bz2
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.
Diffstat (limited to 'src/ngAnimate/animate.js')
-rw-r--r--src/ngAnimate/animate.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ngAnimate/animate.js b/src/ngAnimate/animate.js
index f31932dc..ca9c91b5 100644
--- a/src/ngAnimate/animate.js
+++ b/src/ngAnimate/animate.js
@@ -190,7 +190,7 @@
*
* <pre>
* //!annotate="YourApp" Your AngularJS Module|Replace this or ngModule with the module that you used to define your application.
- * var ngModule = angular.module('YourApp', []);
+ * var ngModule = angular.module('YourApp', ['ngAnimate']);
* ngModule.animation('.my-crazy-animation', function() {
* return {
* enter: function(element, done) {
@@ -199,8 +199,8 @@
* //this (optional) function will be called when the animation
* //completes or when the animation is cancelled (the cancelled
* //flag will be set to true if cancelled).
- * }
- * }
+ * };
+ * },
* leave: function(element, done) { },
* move: function(element, done) { },
*
@@ -215,7 +215,7 @@
*
* //animation that can be triggered after the class is removed
* removeClass: function(element, className, done) { }
- * }
+ * };
* });
* </pre>
*