Thanks to visit codestin.com
Credit goes to github.com

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

Commit 995ccfc

Browse files
Deklingkalpak
authored andcommitted
docs(guide/animations): use the arguments of enabled() in correct order
Closes #14900
1 parent 72c2445 commit 995ccfc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content/guide/animations.ngdoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@ This function can be used to enable / disable animations in two different ways:
313313
With a single `boolean` argument, it enables / disables animations globally: `$animate.enabled(false)`
314314
disables all animations in your app.
315315

316-
When the second argument is a native DOM or jQuery element, the function enables / disables
317-
animations on this element *and all its children*: `$animate.enabled(false, myElement)`. This is the
316+
When the first argument is a native DOM or jqLite/jQuery element, the function enables / disables
317+
animations on this element *and all its children*: `$animate.enabled(myElement, false)`. This is the
318318
most flexible way to change the animation state. For example, even if you have used it to disable
319319
animations on a parent element, you can still re-enable it for a child element. And compared to the
320320
`classNameFilter`, you can change the animation status at runtime instead of during the config phase.

0 commit comments

Comments
 (0)