Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit b78b129

Browse files
committed
docs($animate): correct fn parameters for js animation
1 parent a31c082 commit b78b129

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ng/animate.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ var $AnimateProvider = ['$provide', function($provide) {
553553
*
554554
* @description Performs an inline animation on the element which applies the provided to and from CSS styles to the element.
555555
* If any detected CSS transition, keyframe or JavaScript matches the provided className value, then the animation will take
556-
* on the provided styles. For example, if a transition animation is set for the given className then the provided `from` and
556+
* on the provided styles. For example, if a transition animation is set for the given classNamem, then the provided `from` and
557557
* `to` styles will be applied alongside the given transition. If the CSS style provided in `from` does not have a corresponding
558558
* style in `to`, the style in `from` is applied immediately, and no animation is run.
559559
* If a JavaScript animation is detected then the provided styles will be given in as function parameters into the `animate`
@@ -562,8 +562,9 @@ var $AnimateProvider = ['$provide', function($provide) {
562562
* ```js
563563
* ngModule.animation('.my-inline-animation', function() {
564564
* return {
565-
* animate : function(element, className, from, to, done) {
566-
* //styles
565+
* animate : function(element, from, to, done, options) {
566+
* //animation
567+
* done();
567568
* }
568569
* }
569570
* });

0 commit comments

Comments
 (0)