1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-22 17:02:17 -05:00

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

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) {