You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.
To be able to do that uiMask.Config should become uiMaskConfig. But then uiMaskConfig (value) has to be renamed or provider has to produce the value (which I was certain it did, but it turns out that uiMaskConfig and uiMask.Config are 2 distinct DI entities)
I suggest uiMaskConfig should become uiMaskConfigDefaults and uiMask.Config should be renamed to uiMaskConfig.
It's a breaking change, yet one easy to guide the users through.
The text was updated successfully, but these errors were encountered:
It's what I thought originally. I'm not really understand the way Angular work myself, but the above code is working. And it seems there are 2 different, separate $injector in angular, one is responsible for injecting the providers, one is for services.
I also did a test, if you inject an $injector in the config block, and compare that with the $injector you get from all other controller (including the run block), you will find that the $injector in the config block is different from all the others (all controllers get the same $injector, but not the config block).
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Name of registered provider is
uiMask.Config
so in config blocks it has to be referred to asuiMask.ConfigProvider
.This limits the possibilities of accessing it in config blocks to explicit annotation like this:
but an attempt to use implicit annotation (and possibly ng-annotate or its successor babel-plugin-angularjs-annotate) fails:
To be able to do that
uiMask.Config
should becomeuiMaskConfig
. But thenuiMaskConfig
(value) has to be renamed or provider has to produce the value (which I was certain it did, but it turns out thatuiMaskConfig
anduiMask.Config
are 2 distinct DI entities)I suggest
uiMaskConfig
should becomeuiMaskConfigDefaults
anduiMask.Config
should be renamed touiMaskConfig
.It's a breaking change, yet one easy to guide the users through.
The text was updated successfully, but these errors were encountered: