4 ms·
you have a list , each time you remove elements on the list ,you want to fade out elements that are being removed for 0.5 secs. Explain me how you would do that
by camus 14y ago
you have a list , each time you remove elements on the list ,you want to fade out elements that are being removed for 0.5 secs. Explain me how you would do that.
- Kiro 14y agoJust create a custom binding (or whatever it is called, using knockout terminology here) which fades it via a jQuery fadeOut?
- camus 14y agonope , you have very little control over how angularJS destroy dom nodes.
- ganarajpr 14y agoYou are partially right... partially wrong.. You lose control for it only when you use ng-repeat.. you could alternately write your own repeat directive that does animations for adding or removing.. If your are not yet in a state to write this level of a directive yourself, you still have a few options. I remember someone had written a fadey directive that does fading animation, there is also a fork which does animation with ng-repeat. And if you can wait, this fork will be merged into the core angular , hopefully soon...