Deferrable views in Angularv17

Поділитися
Вставка
  • Опубліковано 30 вер 2024

КОМЕНТАРІ • 50

  • @Angular
    @Angular  10 місяців тому +4

    Check out our website → goo.gle/AngularDev

  • @nossandra
    @nossandra 10 місяців тому +447

    👉 👈 👇 awesome 🤙

  • @AfolabiJude
    @AfolabiJude 10 місяців тому +18

    You guys deserve all the awards coming in

    • @developeroppa
      @developeroppa 9 місяців тому +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 10 місяців тому +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!

  • @umaxvisuals9478
    @umaxvisuals9478 10 місяців тому +8

    Angular is becoming 🔥

  • @terekjanczik
    @terekjanczik 10 місяців тому +5

    All the puns are great

  • @beratsulimani9823
    @beratsulimani9823 10 місяців тому +7

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

  • @manishpradhan9008
    @manishpradhan9008 10 місяців тому +2

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

  • @aram5642
    @aram5642 10 місяців тому +2

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

  • @LarsRyeJeppesen
    @LarsRyeJeppesen 10 місяців тому +3

    @defer is awesome. Using it everywhere

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

    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.

  • @RobertKing
    @RobertKing 10 місяців тому +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  10 місяців тому

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

  • @silviupanait8861
    @silviupanait8861 10 місяців тому +2

    nice

  • @rembautimes8808
    @rembautimes8808 5 місяців тому +1

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

  • @surfbeach100
    @surfbeach100 18 днів тому

    loved the placeholder and viewport joke haha

  • @aram5642
    @aram5642 10 місяців тому +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?

  • @haroldpepete
    @haroldpepete 10 місяців тому +8

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

    • @Satyam-IN
      @Satyam-IN 10 місяців тому +2

      He not she

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

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

    • @Satyam-IN
      @Satyam-IN 10 місяців тому +1

      @@haroldpepete Gender transition. From he to she.

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

      @@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 10 місяців тому +1

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

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

    amazing feature!! i loved it

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

    What's the difference between defer and if

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

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

    • @Angular
      @Angular  10 місяців тому +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

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

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

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

    I just love this feature ❤

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

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

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

    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.

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

    Looks great!

  • @dmitriyobidin6049
    @dmitriyobidin6049 9 місяців тому

    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 :)

  • @СэмҚыпшақ
    @СэмҚыпшақ 9 місяців тому

    I think angular is the best frontend framework.

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

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

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

    This is amazing🎉 great work

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

    I can't wait until I Angular!

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

    Thanks for sharing!

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

    This is huge!

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

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

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

    Nice 🙂

  • @HachemDridi-e2v
    @HachemDridi-e2v 10 місяців тому

    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  10 місяців тому

      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.

  • @KoenigDotGG
    @KoenigDotGG 10 місяців тому +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  10 місяців тому +1

      Yes you can use it for that reason, too 👍

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

    Don't like the new block syntax

    • @Angular
      @Angular  10 місяців тому +2

      What do you prefer?