Just-in-Time (JiT) vs Ahead-of-Time (AoT) compilation in Angular

前端 未结 8 723
难免孤独
难免孤独 2020-12-04 05:50

I was referring this documentation and came across the compilation concept. One can use either JIT or AOT compilation. However, I found it very brief and need to know follow

8条回答
  •  情歌与酒
    2020-12-04 06:17

    JIT (Just-in-Time Compilation)

    Just-in-Time (JIT) is a type of compilation that compiles your app in the browser at runtime.

    ng build
    ng serve
    

    AOT (Ahead-of-Time Compilation)

    Ahead-of-Time (AOT) is a type of compilation that compiles your app at build time.

    ng build --aot
    ng serve --aot
    

提交回复
热议问题