Skip to content

Instantly share code, notes, and snippets.

@chrisjlee
Last active August 29, 2015 13:56
Show Gist options
  • Save chrisjlee/9002862 to your computer and use it in GitHub Desktop.
Save chrisjlee/9002862 to your computer and use it in GitHub Desktop.
Enter / leave
var app = angular.module("app", ["ngAnimate"]);
app.controller("AppCtrl", function() {
this.toggle = true;
});
app.animation(".toggle", function () {
return {
leave: function (element, done) {
element.text("leave");
},
enter: function (element, done) {
element.text("Enter")
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment