I'm trying to use the $animate service to remove an element using 
$animate.leave().
I've read the docs 
<https://docs.angularjs.org/api/ng/service/$animate#leave> on the angular 
website and they say you need to pass in your element and an object with 
options. They dont tell you how to write these options, what you can do 
with them, etc.

I tried using the method like this, but it doesnt seem to work..

$animate.leave(element, {
            from: {
              "left": "0",
              "opacity": "1",
            },
            to: {
              "left": "100%",
              "opacity": "0"
            }
          });

Could someone please explain me how you use the options param properly?
Thanks in Advance!

(what I'm trying to achieve is that when an element gets removed from the 
DOM, it either slides to the left or right according to some external 
params..)

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to