我用Gulp来缩小我的整个js文件.一旦缩小,我得到如下错误:
[$injector:unpr] Unknown provider: eProvider <- e <- makeErrorsDirective.
Run Code Online (Sandbox Code Playgroud)
我的控制器文件中有一个Custom指令.
var myhubdashboardControllers = angular.module('vpdashboardmodule', []);
.directive('mhDashboard', function ($http, authService, apiService) {
return {
restrict: 'EA',
scope: {
name: '@',
dash: '@',
report: '@',
disname: '@',
disdesc: '@',
distot: '@'
},
templateUrl: 'views/dashboard/dashboard-direc.html',
link: function (scope, element, attr) {
scope.linkChk = scope.name;
switch (scope.linkChk) {
case 'Shipped This Week':
scope.url = 'erp/JobShipmentList/PostCpsVwShipmentCount';
scope.shipstatus = "Departure";
scope.period = "ThisWeek";
scope.basicfilter = "Open";
scope.linkName = "Shipments";
scope.linkDesc = "Shipped This Week";
break;
Run Code Online (Sandbox Code Playgroud)
}); …
javascript minify angularjs bundling-and-minification gulp-minify