Skip to content

Conversation

@edcarroll
Copy link
Owner

@edcarroll edcarroll commented Aug 11, 2017

PR is WIP

This is a first attempt at adding lazy loading support (tracking #212). Currently, you can't import a module without getting a double copy of both SuiLocalizationService and SuiPopupConfig, which is undesirable.

Currently, this adds forRoot to all modules, meaning any non-lazy loaded imports must use this syntax. This is a breaking change, hence the v0.10.0 target.

However, I'm thinking perhaps instead we use nothing for a root module, so everything works as expected for existing code, then add a forChild method, that you can use within a lazy loaded module. This would also stop it from being a breaking change.

Lazy loading support. Addresses #212
@edcarroll edcarroll changed the title feat: Added forRoot to all ngModules feat: Lazy Loading Support Aug 11, 2017
@edcarroll edcarroll added this to the 0.10.0 milestone Aug 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants