Deferrable views in Angularv17

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

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

  • @Angular
    @Angular  Год назад +4

    Check out our website → goo.gle/AngularDev

  • @AfolabiJude
    @AfolabiJude Год назад +19

    You guys deserve all the awards coming in

    • @developeroppa
      @developeroppa Год назад +1

      It's nice to see a fellow Nigerian brother who also loves Angular, like anywhere I look in Nigeria it's just react.

  • @wilsonbarbosa8210
    @wilsonbarbosa8210 Год назад +12

    Nice vídeo! I'm studying to become an Angular Developer (planning to become full stack later) for some time now, I've created a few projects and I learn new things every single day. There are some struggles between university and my own studies, but I believe the journey is well worth it. Angular is a really complete and fun framework to work with! I'm really excited for the new possibilities with Angular 17 now, thank you guys for your work!

  • @beratsulimani9823
    @beratsulimani9823 Год назад +7

    Amazing to see the progress of Angular and make us devs life easier, many thanks.

  • @rembautimes8808
    @rembautimes8808 9 месяцев назад +1

    Great feature, funny jokes and excellent punch line. Thanks Angular team for enhancing this amazing platform

  • @umaxvisuals9478
    @umaxvisuals9478 Год назад +8

    Angular is becoming 🔥

  • @haroldpepete
    @haroldpepete Год назад +8

    the lady makes such a wonderful explanation, i wish everybody teach like that, thanks

    • @Satyam-IN
      @Satyam-IN Год назад +2

      He not she

    • @haroldpepete
      @haroldpepete Год назад

      @@Satyam-IN i don't get it, what do you mean?

    • @Satyam-IN
      @Satyam-IN Год назад +1

      @@haroldpepete Gender transition. From he to she.

    • @haroldpepete
      @haroldpepete Год назад

      @@Satyam-IN ah ok, i didn't know that, i have my doubts but i wasn't sure about it, now everything is clear

    • @Satyam-IN
      @Satyam-IN Год назад +1

      @@haroldpepete Well I'll always opposed for gender transition. this people are just lost in this world.

  • @leonardohidalgo5127
    @leonardohidalgo5127 9 месяцев назад

    The other day I updated an application from Angular 14 to 17, I reduced a lot of code and loading times with signals and the new supports. Totally changed the placeholder and spinner part through interceptors and services, I put it aside and used the new deferred view blocks, a great addition is more simpler, descriptive and versatile.

  • @surfbeach100
    @surfbeach100 4 месяца назад

    loved the placeholder and viewport joke haha

  • @crazyshala4571
    @crazyshala4571 9 месяцев назад

    what a commendable job that you done appreciate very much 👏👏👏👏👏👏

  • @SumitParakh1991
    @SumitParakh1991 Год назад +1

    I just love this feature ❤

  • @LarsRyeJeppesen
    @LarsRyeJeppesen Год назад +3

    @defer is awesome. Using it everywhere

  • @aram5642
    @aram5642 Год назад +1

    I start to fall in love with this, (after my initial repulse), however I don't quite get the example of the combined defer conditions (3:46). Are those joined by AND or OR?

  • @anrras
    @anrras Год назад +1

    amazing feature!! i loved it

  • @terekjanczik
    @terekjanczik Год назад +6

    All the puns are great

  • @lakhveerchahal
    @lakhveerchahal Год назад

    This is amazing🎉 great work

  • @manishpradhan9008
    @manishpradhan9008 Год назад +2

    Woohooo, I knew I was making the right choice when I chose Angular over React. :p

  • @MrgnUTube
    @MrgnUTube Год назад +1

    Looks great!

  • @nossandra
    @nossandra Год назад +446

    👉 👈 👇 awesome 🤙

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

    This is differing component loading. This is useful, but what I would really want is to defer javascript loading. So, here, placeholder would be the template populated with the data but not interactive: I would add a parameter to `@defer` which would specify a data loading function. This special case of @defer would use the component own template so it wouldn't need a placeholder. The data would be loaded by a separate function defined inside the component and identified in the `@defer` declaration .e.g `@defer (provider myDataProvider)`. The effect of this @defer would be to load the template using the provided data, and associate the javascript this component later (hydration). Maybe this could be use as a foundation for resumability since the only thing needed at this point would be to allow this defer to be defined in the server, and to allow the state to be serialized and passed to the javascript once it loads to initialize its state instead of using hydration which would be the only option on the client. This is just an idea I am throwing out there, I don't use Angular now but I am really interested in the direction it's taking. If Angular could take the `integrated/all batteries included` solution to the next level i.e. server/meta-framework, and fix the performance issues, I think Angular would become instantly the most popular framework.

  • @aram5642
    @aram5642 Год назад

    Does 'prefetch when !!val' also work, or do we have to use explicit booleans?

  • @HachemDridi-e2v
    @HachemDridi-e2v Год назад

    Will this allow for a complete replacement of the old method of implementing lazy loading at the route level? Or are there cases where the old method still needs to be used?

    • @Angular
      @Angular  Год назад

      There will still be times where you need to lazy load an entire route and times where you might want to only use deferrable views. Having both options increases your flexibility and gives you more tools to implement your solutions.

  • @emmanueldavis1872
    @emmanueldavis1872 Год назад

    I can't wait until I Angular!

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

    This is huge!

  • @aram5642
    @aram5642 Год назад +2

    An example snippet of the component fixture wouldn't have hurt in this, otherwise very informative, video ;)

  • @jsuryakt
    @jsuryakt Год назад +1

    What's the difference between defer and if

    • @Humppakarajat
      @Humppakarajat Год назад +1

      defer loads your component on demand from the server, so it does not have to be part of your initial bundle.

    • @Angular
      @Angular  Год назад +2

      @If is conditional rendering but the code for the component is still included with the bundle. @defer will only ship the code to the browser when it is loaded. So conditional rendering vs lazy loading

  • @RobertKing
    @RobertKing Год назад +2

    angular is the best framework :)
    Does anyone know when the @error shows? I guess it's just if there's an error loading the deferred component?

    • @Angular
      @Angular  Год назад

      If there is an error while loading the component when using @defer

  • @nhannguyendevjs
    @nhannguyendevjs Год назад

    Thanks for sharing!

  • @magnifico689
    @magnifico689 Год назад

    It is possible to be like this @defer(condition).match(@loading => loading, @success => success, @error => error)

  • @silviupanait8861
    @silviupanait8861 Год назад +2

    nice

  • @dmitriyobidin6049
    @dmitriyobidin6049 Год назад

    It's amazing, but we will have to wait a couple years until we will be able to use this features, cause most of the projects won't update right away :)

  • @СэмҚыпшақ
    @СэмҚыпшақ Год назад

    I think angular is the best frontend framework.

  • @julianschmidt6281
    @julianschmidt6281 Год назад

    Nice 🙂

  • @KoenigDotGG
    @KoenigDotGG Год назад +1

    I see that defer is mainly used to reduce bundle size etc. but can it also be used just to delay rendering for heavy components? Is that an intended use or is there a better approach?

    • @Angular
      @Angular  Год назад +1

      Yes you can use it for that reason, too 👍

  • @hunterxg
    @hunterxg Год назад +1

    Don't like the new block syntax

    • @Angular
      @Angular  Год назад +2

      What do you prefer?

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

    Hi! Are you planning to give up RxJs in the future?