angular-ui / ui-mask

Mask on an input field so the user can only type pre-determined pattern
https://htmlpreview.github.io/?https://github.com/angular-ui/ui-mask/master/demo/index.html
MIT License
391 stars 258 forks source link

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

Open spalonytoster opened 7 years ago

spalonytoster commented 7 years ago

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?