mspi
June 6, 2017, 11:59pm
1
Does anyone have an example of MeteorJS with Angular4 and Lazy Loading?
If am combining the example of Quicks (https://github.com/ui-router/quickstart-ng2/tree/9cc51506819227981c7cdd3c4f4bd24f419a37c7 ).
I have everything working, but the lazy loading requires SystemJS and I am having trouble implementing it like in the QuickStart. The systemjs.config.js is niet included in the build so I am a bit confused what to do with it.
Is there a way to exclude having to use SystemJS?
sashko
June 7, 2017, 12:03am
2
In meteor you should be able to ignore the system js config completely and use dynamic import() instead!
mspi
June 7, 2017, 12:24am
3
Okay, that sounds good.
So may second questions, using UI-Router for Angular 4, is there an example how to do the lazy loading as done in the quickstart example I supplied?
Especially this file, https://github.com/ui-router/quickstart-ng2/blob/9cc51506819227981c7cdd3c4f4bd24f419a37c7/src/app.states.ts , where the BAZ route is using loadNgModule
which requires systemJs right now.
It would be cool doing this the Meteor way but I don’t know where to start.