@mgechev
Faster builds
• We do less work
• No longer generate factories
• ngcc does this once*
• No longer using metadata.json
• Incremental AoT builds
Slide 26
Slide 26 text
@mgechev
Faster builds
• We do less work
• No longer generate factories
• ngcc does this once*
• No longer using metadata.json
• Incremental AoT builds
AoT in development
Slide 27
Slide 27 text
@mgechev
Slide 28
Slide 28 text
@mgechev
Slide 29
Slide 29 text
@mgechev
Slide 30
Slide 30 text
@mgechev
Smaller bundles
• Less generated code
• Smaller framework
Slide 31
Slide 31 text
@mgechev
Smaller framework
• Tree-shakable instructions
• No need for ngfactory machinery
Slide 32
Slide 32 text
@mgechev
Improved i18n
Slide 33
Slide 33 text
Angular compile-time i18n (v2-v8)
src
lib
Link &
optimize
ngc
ngc
l10n
l10n
l10n
l10n
Slide 34
Slide 34 text
Angular compile-time i18n (v2-v8)
src
lib
Link &
optimize
ngc
ngc
l10n
l10n
repeat
Slide 35
Slide 35 text
@mgechev
Focused on static optimizations
• Generate app at compile-time:
• No runtime binding overhead
• Smaller bundles:
• Localizations are hard to tree-shake
• No need for binding instructions
Slide 36
Slide 36 text
Angular compile-time i18n (Ivy)
src
lib
Link &
optimize l10n
repeat
ngc
Slide 37
Slide 37 text
@mgechev
Angular Universal
Slide 38
Slide 38 text
@mgechev
Challenges with Universal
● Change-refresh time
● Deployment
Slide 39
Slide 39 text
@yourtwitter
$ ng add @nguniversal/express-engine
$ ng run [PROJECT_NAME]:serve-ssr
New in
v9!
Slide 40
Slide 40 text
@yourtwitter
$ ng update @nguniversal/express-engine