2

I am new to AngularJS framework and I am trying to get slide effect same as jQuery provides, I did google too much but didn't find anything related to it. So if any one has any idea about that please guide me to achieve that thank you.

Quintin Robinson
  • 81,193
  • 14
  • 123
  • 132
mkat
  • 149
  • 1
  • 3
  • 12

4 Answers4

5

You might find AngularUI useful if you want to animate DOM object insertion (check the animate directive).

---- Update -----

Newer versions of Angular (1.1.4+ I believe) add a ngAnimate directive especially made for adding CSS animation to Angular apps. Check the offical docs (http://code.angularjs.org/1.1.4/docs/api/ng.directive:ngAnimate) or http://www.nganimate.org/.

Christophe L
  • 13,725
  • 6
  • 33
  • 33
2

You can (and should) use the jQuery slide, but wrap it in an angular directive. Check the docs about directives and also this video.

Roy Truelove
  • 22,016
  • 18
  • 111
  • 153
1

In general, you should not be using jQuery directly with Angular, even in directives. It is a last resort. Here is another good post on the topic here on SO.

"Thinking in AngularJS" if I have a jQuery background?

Community
  • 1
  • 1
Ron
  • 353
  • 3
  • 7
-1

In my humble opinion ui.bootstrap covers this issue, for instance this basic example http://surecode.me

Kirill Shur
  • 280
  • 2
  • 4