Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Lazy Loading Support #235

Open
wants to merge 1 commit into
base: v0.10.0
Choose a base branch
from

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.

None yet

1 participant