Skip to content

Commit 9804867

Browse files
petebacondarwinmatsko
authored andcommitted
docs(error//nocb): add error doc for invalid parameter
1 parent 9bb4d6c commit 9804867

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@ngdoc error
2+
@name $animate:nocb
3+
@fullName Do not pass a callback to animate methods
4+
@description
5+
6+
Since Angular 1.3, the methods of {@link ng.$animate} do not accept a callback as the last parameter.
7+
Instead, they return a promise to which you can attach `then` handlers to be run when the animation completes.
8+
9+
If you are getting this error then you need to update your code to use the promise-based API.
10+
11+
See https://github.com/angular/angular.js/commit/bf0f5502b1bbfddc5cdd2f138efd9188b8c652a9 for information about
12+
the change to the animation API and the changes you need to make.

0 commit comments

Comments
 (0)