After few hours of debugging i've found that there's some logic for building those modules (reflective_provider.js:87), after adding simple debug line on loop
console.log(providers); // <---
providers.forEach(function (providerType) {
console.info('building for: ', providerType, ', in: ', angular1Module.name); // <--
// this is for legacy Angular 1 module
(...)
i've got interesting info
consoleLog
- ["ui.router", undefined, undefined, undefined]
- building for: ui.router , in: appModule#40
- building for: undefined , in: appModule#40
To be clear, i've been working on Angular1-scaffold#ui.router, so module UiRouter is from there, every of 3 remaining modules are created by me.
Issue happened after i wanted to separate most of the code into smaller modules, so i can import them in my main AppModule
---Edit---
Forgot to mention: I'm using version 4.0.0
Hi there
I wanted to create an module with build-in interceptor for injecting language parameter to every request sent to API.
Then i want to import this one into mine HttpModule (created using ng-metadata)
After few hours of debugging i've found that there's some logic for building those modules (reflective_provider.js:87), after adding simple debug line on loop
i've got interesting info
consoleLog
To be clear, i've been working on
Angular1-scaffold#ui.router
, so module UiRouter is from there, every of 3 remaining modules are created by me.Issue happened after i wanted to separate most of the code into smaller modules, so i can import them in my main
AppModule
---Edit--- Forgot to mention: I'm using version 4.0.0