activate ngAnimate for whitelisted classes only

This commit is contained in:
Mario Volke 2014-11-10 13:03:32 +01:00 committed by Tankred Hase
parent 64abd6ad63
commit aff3854cb9
1 changed files with 4 additions and 1 deletions

View File

@ -58,7 +58,7 @@ var app = angular.module('mail', [
]);
// set router paths
app.config(function($routeProvider) {
app.config(function($routeProvider, $animateProvider) {
$routeProvider.when('/login', {
templateUrl: 'tpl/login.html',
controller: LoginCtrl
@ -102,6 +102,9 @@ app.config(function($routeProvider) {
$routeProvider.otherwise({
redirectTo: '/login'
});
// activate ngAnimate for whitelisted classes only
$animateProvider.classNameFilter(/^lightbox$/);
});
app.run(function($rootScope) {