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 }}
Repository navigation
Use loadChildren load sub module, when visit sub route page, submodule's dependency module will repeat new. #13885
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
Use loadChildren loaded module will repeat new dependencies module.
Expected behavior
Not repeat new, use the singleton module.
Minimal reproduction of the problem with instructions
Define a child module, set more than one route, like this:
Activity
DzmitryShylovich commentedon Jan 12, 2017
Duplicate of #12889
hstarorg commentedon Jan 12, 2017
@DzmitryShylovich Caused a new problem, that can't use common-module's service to store data.
mhevery commentedon Jan 13, 2017
@hstarorg whey can't you use common-module service to store data?
hstarorg commentedon Jan 16, 2017
@mhevery Only common-module is dynamic load will has the bug.
hstarorg commentedon Feb 15, 2017
@DzmitryShylovich Would you tell me which version will fix this bug?
DzmitryShylovich commentedon Feb 15, 2017
@hstarorg 4.0 (not sure about 2.x)
hstarorg commentedon Feb 15, 2017
@DzmitryShylovich 4.0.0-beta.7 also has this bug,
DzmitryShylovich commentedon Feb 15, 2017
4.0 final...
hstarorg commentedon Feb 15, 2017
@DzmitryShylovich ok, I must waiting a long time.
fix: element injector vs module injector (angular#15044)
fix: element injector vs module injector (angular#15044)
fix: element injector vs module injector (angular#15044)
angular-automatic-lock-bot commentedon Sep 11, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.