ui-mask icon indicating copy to clipboard operation
ui-mask copied to clipboard

Using ui-mask doesn't work with ng-annotate

Open spalonytoster opened this issue 8 years ago • 0 comments

Hello. I want to inject uiMaskConfigProvider implicitly (using ng-annotate). I have an angular config function like this:

function config($locationProvider, $urlRouterProvider, uiMaskConfigProvider) {
  ...
}

The problem is I can't use it like I normally do:

someModule.config(config);

but I have to do it the standard way.

someModule.config(['$locationProvider', '$urlRouterProvider', 'uiMask.ConfigProvider', config]);

What is causing this behavior? Am I missing something?

spalonytoster avatar Feb 09 '17 17:02 spalonytoster