Deep Dive into the Angular Compiler | Alex Rickabaugh |

Поделиться
HTML-код
  • Опубликовано: 18 сен 2024

Комментарии • 19

  • @chriswininger3022
    @chriswininger3022 4 года назад +10

    I love that trick where they add offsets into the template to the generated typescript to link back to the template on error. Such a beautiful hack.

  • @blackblather
    @blackblather 6 месяцев назад

    Yo that part about adding the number comments is so ugly and cool at the same time. I love and hate it 🤣🤣

  • @rutshah8710
    @rutshah8710 3 года назад

    Excellent! Thank you very much!

  • @andrewskangah3710
    @andrewskangah3710 4 года назад

    Alex Rickabaugh 👏

  • @kresimirnurnberger6567
    @kresimirnurnberger6567 4 года назад

    Great talk and great work! Enjoyed every minute of it.

  • @mahdikamran8061
    @mahdikamran8061 5 месяцев назад

    Thank you.

  • @sanjaygarg3540
    @sanjaygarg3540 3 года назад

    Amazing talk !!

  • @TheRajmoney
    @TheRajmoney 3 года назад

    awsome video

  • @tadejafirmanzajc7098
    @tadejafirmanzajc7098 4 года назад

    Great talk! 💪

  • @mohammedelhadididi4612
    @mohammedelhadididi4612 3 года назад +1

    When alex said that compilation process pass through 5 steps (3 like a normal typescript compiler and 2 angular specials) , is that true only when using AOT compilation or it doesn't matter if it's JIT or AOT compilation ?

    • @PrinceKumar-no3uo
      @PrinceKumar-no3uo 2 года назад +6

      JIT have 3 ( the regular ts compilation ), AOT have the two extra angular specials for analysing and resolving decorators.

  • @masterlup
    @masterlup 4 года назад +1

    25:45 I dont understand what Alex means by "template in external file" and why is that a problem with the view engine :/.

    • @dongcai6203
      @dongcai6203 4 года назад +1

      You can write an html template in component file or in external file. The problem with the view engine is that if an error message occurs in the external file, it's hard to locate it. But now the Ivy engine solves this problem.

  • @coachkerni9464
    @coachkerni9464 3 года назад +1

    First of all: great talk :)
    However I am not getting one thing:
    When the typescript compiler is written in typescript, who is compiling the compiler? 🤷‍♂️

    • @MUKESHYADAV-lf8cv
      @MUKESHYADAV-lf8cv 3 года назад

      TypeScript compiler compiles the typescript code (.ts files) into javascript files. It takes .ts files and convert it into .js. It's like a automatic machine transforming raw materials into finished products. So, why would you wanna transform that automatic machine ? Similarly, why would one compile a compiler, there is no need of that.

    • @theshermantanker7043
      @theshermantanker7043 11 месяцев назад

      The TypeScript compiler compiles itself. This is what is known as a self hosting implementation

  • @PrafullOnUTube
    @PrafullOnUTube 4 года назад

    cool explanation thx a lot

  • @masterlup
    @masterlup 4 года назад

    19:23 `imports: [...CONFIG.modules]`, we have to spread, right?