I looked at three different ways to minimize AngularJS scripts. However, none of them explain how I should account for custom filters. I have code formatted as follows:
app.controller("App", ["$scope","$timeout", function($scope, $timeout){...}]);
Along with additional code like this:
app.filter('unsafe', function($sce) {
return function(val) {
return $sce.trustAsHtml(val);
};
});
When I reduce all of the above, the filter is no longer recognized. How do I go to my code for clarification?
source
share