@MartinaKraus11
tsconfig.json:
//to Opt-out:
"angularCompilerOptions": {
"enableIvy": false
}
GDE in Angular and Web Technologies
Trainer and Consultant
Women Techmakers Ambassador
Angular
Code
ngc
JavaScript Code
export class AppCmp { title: string; ngComponentDef = ng.defineComponent( {...}) }
ngc
@Component({ selector: ‘app-component’ template: `<h1>{{ title }}</h1>` }) export class AppCmp {}
// 9.0.2
> ng new awesome-app
> ngc
ViewEngine:
1,3MB
Ivy:
14kB
more than 100kB
many performance issues
Too much magic
Cleaner API
Improvement of Stack Trace
Browser Errors also in the Console
Ivy reduces the bundle size significantly
Lazy loading of Components
Easier Debugging
Optional ngModules
kraus.martina.m@gmail.com
@MartinaKraus11
martina-kraus.io
Ping me:
Slides: slides.com/martinakraus/ivy-future