If my directive is defined as:
myapp.directive('directivename', ...
return {
...
restrict: 'E',
controller: MyController,
...
}
function MyController($scope, $somethingelse) {
// Controller code goes here
}
);
How can I prevent MyController
from being destroyed during minification?
I'm encountering the following error message:
Error: [$injector:unpr] Unknown provider: eProvider <- e