Here is the AngularJS controller code that I am working with:
(function() {
'use strict';
angular
.module('app')
.controller('TemplateCtrl', TemplateCtrl);
function TemplateCtrl($http, $auth, $rootScope,$scope){
}
})();
After compressing it using , this was the output I received:
!function(){"use strict";function t(t,l,n,e){}angular.module("app").controller("TemplateCtrl",t)}();
Before compression, everything was fine. But after compressing, I started encountering this error:
Error: [$injector:unpr] Unknown provider: tProvider <- t <- TemplateCtrl
I have tried fixing this issue but haven't found a solution yet. Any help or suggestions would be greatly appreciated.
Thank you for your assistance!