I have af MVC 4.5 project with angularjs. I have done bundle and minification on controllers and factories. I have read about making angular controllers and factory minification safe, but I get this error and I cant find the problem:
Unknown provider: $resourceProvider
The Module:
var app = angular.module("seducApp", []);
app.$inject = ['ngRoute', 'ngResource', 'ngSanitize', 'ngAnimate', 'ui.tinymce', 'mgcrea.ngStrap.tooltip',
'mgcrea.ngStrap.datepicker', 'mgcrea.ngStrap.alert', 'ui.select', 'uuid4', 'rt.popup', 'angular-md5', 'mgcrea.ngStrap.button',
'ui.bootstrap.tabs', 'mgcrea.ngStrap.timepicker', 'naif.base64', 'base64', 'angular-smilies', 'angular-google-adsense',
'angularFileUpload', 'angular.directives-round-progress', 'numericbinding', 'ngImgCrop', 'ui.tree', 'timer',
'$httpProviderConfig', '$compileProviderConfig', '$locationProviderConfig', 'uiSelectConfig', 'datetimeFilter',
'cutFilter', 'groupFilter', 'partitionFilter', 'aDisabledDirective'];
The Factory:
app.factory('siteRepository', function ($resource, $http) {
return {
checkSiteStatus: function () {
return $resource('/Home/GetSiteStatus').query();
},
getSiteStatus: function () {
return $http.get('/Home/GetSiteStatus')
},
getSiteChangeLog: function () {
return $http.get('/Home/GetSiteChangeLog')
}
}
});
Debug is set to true in web.config, then I should not get the minified version of the factory.
I have tried a great number of things, but no solutions :(