Angular 9 Tutorial For Beginners #75- Ahead of Time (AOT) Compilation

preview_player
Показать описание
Angular 9 Tutorial For Beginners #75 - ahead of time (AOT) compilation in Angular, Angular tutorials ahead of time (AOT) compilation in Angular, Angular ahead of time (AOT) compilation in Angular, Angular 9 ahead of time (AOT) compilation in Angular, Angular tutorial ahead of time (AOT) compilation in Angular, angular 9 ahead of time (AOT) compilation in Angular, angular ahead of time (AOT) compilation in Angular 6,7,8, 9, angular 8 example,

Angular 9 tutorial for beginners, angular 9 crash course, angular 9 tutorial for beginners step by step, angular tutorial for beginners 2020, angular tutorial 2020, arc tutorial angular, angular code examples, angular for freshers, angular tutorial for experienced, angular introduction, angular version history, angular full tutorial series, best angular tutorial.

Install bootstrap angular tutorial, Learn how to install Bootstrap in Angular 9 app. In this course you will learn how to create small, medium, large applications with Angular 9 in this development tutorial.

Angular 9 Full Tutorial Playlist

Angular Ahead of Time (AOT)
---------------------------------------

1. AOT - stands for Ahead of Time compilation
2. Why do we need it?
- Angular code is in TypeScript and the metadata like @component, injectable, pipes etc are not understood by browers
- we need to convert it to browser understable code
3. Angular has 2 ways to compile
- Just in Time - till Angular 8 - this used to be default
- Ahead of Time from Angular 9 onwards - AOT is deafult
4. Benefits of AOT
- Faster Redendering
- Security
- Prevents Injection attacks
Рекомендации по теме
Комментарии
Автор

Great. I appreciate. I have one question why we use hostlistener events rather than using normal angular events. And why we custom directives in angular. Can you please make a video on it if possible.

gajudone
Автор

Can you please tell me a scenario even after AOT being the default option, where we need to make JIT as an option?

Coffee_Kaburlu
Автор

In phase2 code generation u mentioned 1 thing non-null assertion what does it mean?

vineethkumar
Автор

What is the impact if we turn of AOT compiler?

tejag
Автор

Hi sir can you explaine of interceptor architecture with example of line by line ?

sheikhnaseem
Автор

Hi sir, when we install angular 10, we get aot by default or show we install any package for this, actually I was building a project and I got a error regarding AOT, after that I searched the error in google and and I did 'npm build' and the next day no error

saikumarmogilla