I was trying to avoid template errors with angular js when my user became unauthenticated. To do this, I came to this stackoverflow solution.
It worked for me, but now I noticed that my ng-animate stopped working without throwing console errors.
What am I missing?
Update: This is the code used
var app = angular.module('app',[]);
app.config(['$provide', function($provide) {
$provide.decorator('$templateRequest', ['$delegate', function($delegate) {
var mySilentProvider = function(tpl, ignoreRequestError) {
return $delegate(tpl, true);
}
return mySilentProvider;
}]);
}]);