How to make angular decorators minification friendly?

angularjs, google-closure-compiler

Solution

You are missing the `[`. The pattern is the same that you successfully applied for `config`:

$provide.decorator("$exceptionHandler" , [ "$delegate","$injector", 
    function($delegate,$injector) {

Problem

How to can I make this code that I have minification friendly? ``` MyModule.config(['$provide',function($provide) { $provide.decorator("$exceptionHandler", function($delegate,$injector) { ``` I can't seem to do this: ``` $provide.decorator("$exceptionHandler" , "$delegate","$injector", function($delegate,$injector) { ```

Original source