Multiple config blocks in angular module

后端 未结 1 481
隐瞒了意图╮
隐瞒了意图╮ 2021-02-05 21:07

I need to resolve some dependencies (fetching data for my services, etc.) in my app before it loads. I would like to separate these out, so that I have one config block for the

相关标签:
1条回答
  • 2021-02-05 21:41

    Having multiple config blocks in application is not a problem. it should work fine. It is totlly fine to chain configs to keep things isolated like. there should be something else that you are missing here. May be the service providers are not resolved at the time App configuration starts.

    Or The module which has the service in it is not resolved at the time of App start up. Make sure the module or services which are used in config block are resolved and available in AppModule at start up.

    0 讨论(0)
提交回复
热议问题