ionic-team / ionic-starter-super

The Ionic 2 Super Starter 🎮
Other
376 stars 142 forks source link

Question: Use Lazy Loading For Pages #122

Closed simonhaenisch closed 7 years ago

simonhaenisch commented 7 years ago

I was a bit confused when I used ionic generate page something for the first time and it created a something.module.ts file. Now I figured out that it is used for lazy loading and was wondering if that should be implemented in this best practice starter?

janpio commented 7 years ago

Lazy Loading is not really pinned down yet, but here is a PR for this project that would implement it: https://github.com/ionic-team/ionic-starter-super/pull/110 (Has to be updated to solve some conflicts though)

If you want to implement lazy loading, have a look at the blog posts about it: http://blog.ionic.io/ionic-and-lazy-loading-pt-1/ http://blog.ionic.io/ionic-and-lazy-loading-pt-2/

simonhaenisch commented 7 years ago

I already implemented it (this was very helpful), was just wondering why it's not in here yet. Thanks for the clarification :).

danielsogl commented 7 years ago

Lazy loading is now enabled by default