Currently, I am attempting to decrease the size of my AngularJS JavaScript code (using SquishIt).
Within my module, there is a service injected as a function argument, as shown below.
var myapp = angular.module('myapp', ['ngSanitize'], function ($routeProvider) {
...
The issue arises when I try to minify the code; $routeProvider
gets changed to something like n
, causing AngularJS to not recognize it.
I have managed to handle a similar situation with my controller, which appears to be functioning properly.
myapp.controller('MyAppController', ['$scope', '$routeParams', '$filter', 'storage', function ($scope, $routeParams, $filter, storage) { ... }]);
Unfortunately, I am struggling to implement the same solution for my module.