Nếu tôi có như sau:Giảm thiểu góc với bộ điều khiển chỉ thị?
myapp.directive('directivename', ...
return {
...
restrict: 'E',
controller: MyController,
...
}
function MyController($scope, $somethingelse) {
// Contents of controller here
}
);
Làm thế nào để tôi sửa đổi này như vậy mà MyController
sẽ không bị phá hủy khi minified? Tôi nhận được lỗi sau:
Error: [$injector:unpr] Unknown provider: eProvider <- e
Bạn biết đấy ... nếu chỉ Angular cho chúng tôi nhiều lựa chọn hơn. Tại sao chúng lại không linh hoạt? Dang. – Rap