From d0f8bd30a6c53f00c1206021f68330cb5e8eda37 Mon Sep 17 00:00:00 2001 From: Blaise Kal Date: Mon, 2 Dec 2013 10:44:27 +0100 Subject: 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. --- src/ngAnimate/animate.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ngAnimate') 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 @@ * *
* //!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) { }
- * }
+ * };
* });
*
*
--
cgit v1.2.3