Settings

Theme

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

blog.angular-university.io

2 points by xpto123 9 years ago · 2 comments

Reader

xpto123OP 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.

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.

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.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection