TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Angular 2 RC5 release enables ahead of time compilation and lazy loading

2 pointsby xpto123almost 9 years ago

1 comment

xpto123almost 9 years ago
This is a post on how the latest Angular 2 release and the NgModule feature will enable transparent ahead of time compilation for minimal bundle sizes plus transparent easily configurable lazy loading.<p>This feature coupled with upcoming angular-cli versions will make features like minimal bundles and lazy loaded apps much simpler to make than ever before. the angular-cli will actually provide these features pretty much transparently.<p>The developer will only have to add some minimal config by defining modules and passing modules to the router to make them lazy loadable. But there are some minor pitfalls to bear in mind in what relates to dependency injection.