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

Write simple angular-cli guide #2

Closed
christopherthielen opened this issue Nov 2, 2016 · 5 comments
Closed

Write simple angular-cli guide #2

christopherthielen opened this issue Nov 2, 2016 · 5 comments

Comments

@christopherthielen
Copy link
Member

include lazy loading

@niwrA
Copy link

niwrA commented Dec 18, 2016

I am using this for angular-cli and the basics seem to work fine as long as I was already ng serving the app, but when I start it with the UIRouterModule in my main app, the build just stops at some point. I'll create an issue. When I get that solved, perhaps I can help with this.

@mkoczorowski
Copy link

@niwrA did you manage to get lazy loading working with abgular-cli 1.0 webpack ?

@christopherthielen
Copy link
Member Author

@mkoczorowski the sample app shows lazy loading working with angular-cli 1.0+

https://github.com/ui-router/sample-app-ng2

@mkoczorowski
Copy link

@christopherthielen thank you. I spend days trying to figure it out!
I was missing this bit

providers : [
{ provide: NgModuleFactoryLoader, useClass: SystemJsNgModuleLoader }
],

everything started woking finally :D

christopherthielen added a commit to BenevidesLecontes/angular that referenced this issue Nov 9, 2017
@stale
Copy link

stale bot commented Dec 30, 2019

This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.

This does not mean that the issue is invalid. Valid issues
may be reopened.

Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants