I am working on an Angular JS animation so it fades from view1 to view2 but
it doesn't seem to be working and I can't detect any bugs in my code if
someone could help that would be great.
// Code goes here
as = angular.module("esg",
["ngAnimate","ngRoute","esgControllers","ngMockE2E","esg.service"]);
as.config(['$routeProvider', function($routeProvider) {
$routeProvider.
when('/', {
templateUrl: 'views/vieworders.html',
controller: 'ViewOrdersController'
})
.when('/neworder', {
templateUrl: 'views/neworder.html',
controller: 'NewOrderController'
});
}]);
as.animation('.reveal-animation', function() {
return {
enter: function(element, done) {
element.css('display', 'none');
element.fadeIn(5000, done);
return function() {
element.stop();
}
},
leave: function(element, done) {
element.fadeOut(5000, done)
return function() {
element.stop();
}
}
}
})
--
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.