Why does Angular 2 have JiT compilation for templates?

What is the point of creating a JiT compilation for Angular 2 HTML templates in the browser at runtime?

I know that Forward, compilation exists to solve this problem, and it improves startup performance significantly.

I am not asking if I should use JiT or AoT compilation.

The TypeScript compiler is able to compile JSX , does this mean that someday we will get the same support for Angular 2 templates as a replacement for @angular/compiler-cli?

+4
source share
1 answer

production

, , , .

, , , .

, AoT , , AoT.

, , Angular2 ( , , , )

. Angular2

, - , () AoT.

+3

Source: https://habr.com/ru/post/1655951/


All Articles