Angular Interview Questions - Difference between JIT and AOT Compiler

Поділитися
Вставка
  • Опубліковано 15 жов 2024
  • Angular Interview Questions Difference between JIT and AOT Compiler
    -----------------------------------------------------------------------------------------------------------------------
    In the series of Angular Interview question , In this video we will cover , what is the differences we have between JIT and AOT Compiler
    • JIT - Just-in-Time Compiler : JIT compiles the application in the browser at runtime.
    • AOT - Ahead-of-Time Compiler : AOT compilation compiles the application at build time.
    Differences:
    -----------------------------------------------------------------------------------------------------------------------
    ****************
    JIT -
    ****************
    1. Compile at runtime in the Browser
    2. Larger Angular bundle files size
    3. Detect template errors later at runtime
    4. Slower rendering
    5. More asynchronous requests
    6. Less security
    7. Less Performance
    8. Good for the development
    ****************
    AOT -
    ****************
    1. Compile at build time
    2. Smaller Angular bundle files size
    3. Detect template errors earlier at compile time
    4. Faster rendering
    5. Less asynchronous requests
    6. Better security
    7. Better performance
    8. Good for the production
    Used Command:
    -----------------------------------------------------------------------------------------------------------------------
    ng serve
    ng build --aot --output-hashing none --base-href webcomponent
    Follow Me:
    -----------------------------------------------------------------------------------------------------------------------
    FACEBOOK - / kyprogramming
    TWITTER - / kyprogramming
    UA-cam Channel -
    -----------------------------------------------------------------------------------------------------------------------
    / @kyprogramming
    / @kyprogramming
    Code:
    -----------------------------------------------------------------------------------------------------------------------
    github.com/kyp...
    If you have not subscribed yet then please SUBSCRIBE and do not forgot to press the bell icon in order to get notification for all my upcoming videos as well as please like and share to the others as well.
    Interview Questions -
    -----------------------------------------------------------------------------------------------------------------------
    What is difference in between JIT and AOT?
    What JIT and AOT Stands for?
    Difference in between JIT and AOT?
    Is AOT good for development?
    Is JIT good for production?
    What all the difference compilers we have in Angular?
    What is the compilation process in JIT and AOT?
    What was the issue with JIT compiler ?
    Why IVY render engine is being used?
    In which angular version IVY was introduced?
    How to create a service?
    How to create a component?
    How to create a Web component?
    How to migrate component to web component?
    How to use web component to any other application?
    How to configure web component in angular?
    How to pass parameter @Input() to the component?
    How to concatenate java scripts files using node?
    How to use HttpClient module in the web component?
    How to create a new Angular web application?
    How to create a get API angular Service?
    How to create a Movie-Search Component ?
    How to create a component to single standalone java script file?
    How to use Bootstrap CSS to Angular application via Bootstrap's CDN?
    How to use same component multiple times in angular application?

КОМЕНТАРІ • 31

  • @StudyWithGiri
    @StudyWithGiri Рік тому +4

    After watching 4 to 5 videos, I understood only by watching this video about AOT and JIT.
    thanks for making this video. I love it

    • @kyprogramming
      @kyprogramming  Рік тому

      Thank you very much and glad you liked it.

  • @akchat01
    @akchat01 10 місяців тому +1

    Nice in depth video, missing these types of video in UA-cam, I watched the video in 1.5x. Anyway, keep making, keep teaching ❤❤

    • @kyprogramming
      @kyprogramming  10 місяців тому

      Thank you 🙏 for your appreciation!

  • @akiii461
    @akiii461 7 місяців тому +2

    thanks for the detailed comparison....

  • @nehruclasses9303
    @nehruclasses9303 Рік тому +2

    This is what expected ❤

  • @sona4612
    @sona4612 Рік тому +1

    Wow...🔥🔥🔥🔥
    Thanks a lot..
    Just a small doubt. Is the ng serve always JIT, irrespective of whether we put aot as true or false in the angular.json?..
    Please reply.

    • @kyprogramming
      @kyprogramming  Рік тому

      When you run the ng build (build only) or ng serve (build and serve locally) CLI commands, the type of compilation (JIT or AOT) depends on the value of the aot property in your build configuration specified in angular. json . By default, aot is set to true for new CLI applications.

    • @kyprogramming
      @kyprogramming  Рік тому

      Thank you very much!

    • @sona4612
      @sona4612 Рік тому +1

      @@kyprogramming thanks for the clarification

  • @vrb199
    @vrb199 Рік тому +1

    Awesome explanation, thanks a lot for this video, very helpful ❤

  • @JaroslawKubiak-hq8qd
    @JaroslawKubiak-hq8qd 3 місяці тому +1

    Did you have to put this Subscription notification every minute?

    • @kyprogramming
      @kyprogramming  3 місяці тому +2

      Thanks for your suggestion, I have moved subscription notification in the last for all my later uploaded videos.

  • @satishchandra3076
    @satishchandra3076 2 місяці тому +1

    Connecting Database from angular app, pls make a video

    • @kyprogramming
      @kyprogramming  2 місяці тому

      @@satishchandra3076 Dear Satish, angular does not connect directly with database. It connect with the database using API. Certainly I'll make the video on it. Thank you for your suggestion.

  • @forprogrammers6827
    @forprogrammers6827 3 місяці тому +1

    very good explanation.

  • @KarthickRajendran-y2v
    @KarthickRajendran-y2v 6 місяців тому +1

    Thank bro. Very well explained

    • @kyprogramming
      @kyprogramming  6 місяців тому

      Thanks a lot for your comment 👍

  • @pugazhkrishna1522
    @pugazhkrishna1522 Рік тому +1

    Nice explanation

  • @omkarmankar1524
    @omkarmankar1524 Рік тому +1

    Very well explained

  • @priyankajambhulkar6564
    @priyankajambhulkar6564 Рік тому +1

    Very well explained 😊

  • @ShahrukhWonder
    @ShahrukhWonder 7 місяців тому +1

    Best vdo on int

    • @kyprogramming
      @kyprogramming  7 місяців тому

      Thank you Shahrukh for your comment!

  • @indolinuxtechgaming7037
    @indolinuxtechgaming7037 Рік тому

    Bhai please upload more videos on angular
    aapki explanation bhot acchi hai.
    please please please please please please please please please please please please upload more videos on angular
    Thank you