From aff3854cb98343396721597c3667fbd7f1254c85 Mon Sep 17 00:00:00 2001 From: Mario Volke Date: Mon, 10 Nov 2014 13:03:32 +0100 Subject: [PATCH] activate ngAnimate for whitelisted classes only --- src/js/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/app.js b/src/js/app.js index d276e41..7480f02 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -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) {