Deferrable Views - New Feature in Angular 17

  Рет қаралды 23,452

Decoded Frontend

Decoded Frontend

Күн бұрын

Пікірлер: 75
@DecodedFrontend
@DecodedFrontend 9 ай бұрын
Level up your Angular skills with my Advanced Courses 🚀 bit.ly/discounted-course-bundle 💡 Short Frontend Snacks (Tips) every week here: Twitter - twitter.com/DecodedFrontend Instagram - instagram.com/decodedfrontend LinkedIn - www.linkedin.com/in/dmezhenskyi
@MrKOHKyPEHT
@MrKOHKyPEHT 9 ай бұрын
IMO Angular 17 is game changer, but when we are talking about bumping current projects to version 17 - using all new features and benefits of Angular 17 will require a lot of refactoring, including both templates and components (deferrable views, signals, etc.)
@yankotliarov9239
@yankotliarov9239 9 ай бұрын
Angular is backwards compatible so you can start with building new components with signals and slowly migrate older ones over time, algular already has great reactivity using MVVM model, even if it comes with some overhead. Algular team also works on making NoZone providers so you can disable zone for specific components rather then going all or nothing on refactoring whole application.
@DecodedFrontend
@DecodedFrontend 9 ай бұрын
Yeah, the Angular 17 is absolutely fantastic :) Regarding the part of refactoring, I agree that the migration will take some work, unfortunately. However, here I agree with @yankotliarov9239. Angular doesn't force you to migrate to all these awesome features immediately to benefit from Angular 17. You can do it incrementally because all these new features are backward compatible. Also, the Angular team invests a lot of effort in schematics to automate migrations where possible :)
@Panossa
@Panossa 8 ай бұрын
@@DecodedFrontend do you mind creating videos on such schematics for Angular 17 if there are any?
@aj.arunkumar
@aj.arunkumar 5 ай бұрын
@@Panossa just run ng update and you will be told what to do to update
@o_glethorpe
@o_glethorpe 9 ай бұрын
That prefetch on idle is amazing
@hanshans9902
@hanshans9902 8 ай бұрын
Why
@Panossa
@Panossa 8 ай бұрын
@@hanshans9902 Imagine you have a website with endless scrolling. You only load the first 10 elements, but can load the next 10 as soon as the first are loaded. The initial page load is quick but you don't have to wait for long for additional content. Or imagine you have a website with different category buttons, like for shopping. You know most users will click on category A when visiting the website, thus you can start loading that as soon as the main page is loaded.
@gonzalocorchon6509
@gonzalocorchon6509 9 ай бұрын
I've been missing you lately. It was worth the wait. Great video as usual.
@DecodedFrontend
@DecodedFrontend 9 ай бұрын
Yeah... I had s short pause. Thank you! :)
@vladislavamarkova8379
@vladislavamarkova8379 9 ай бұрын
One of the best videos on Deferrable Views, thank you!
@DecodedFrontend
@DecodedFrontend 9 ай бұрын
Glad it was helpful!
@atulkamble557
@atulkamble557 Ай бұрын
Beautifully explained! This is going to be very useful.
@Panossa
@Panossa 8 ай бұрын
This is a very hands-on approach to showing new features, love it! Very concise and ripe with examples. Thanks!
@timurbirgalin4704
@timurbirgalin4704 9 ай бұрын
This is a really cool feature and I can't wait to try this one and other new features in our new project at work! Thank you so much for the video!
@gagiksimonyan3782
@gagiksimonyan3782 9 ай бұрын
Thanks for another useful video, Dmytro) Glad to see you again
@DecodedFrontend
@DecodedFrontend 9 ай бұрын
Thanks, Gagik! 😊
@innocentmazando3808
@innocentmazando3808 9 ай бұрын
Always a good thing hearing you explain concepts to us. Thanks @Dymtro
@DecodedFrontend
@DecodedFrontend 9 ай бұрын
Glad that it was helpful and thank you for your comment ;)
@GuillermoArellano
@GuillermoArellano 6 ай бұрын
This was awesome! Thank you, Dmytro.
@littleoddboy
@littleoddboy 3 ай бұрын
no one could teach deferrable views in angular better.
@aliroshan5773
@aliroshan5773 9 ай бұрын
Thanks for your hardworking and sharing your experience ❤
@psk2166
@psk2166 9 ай бұрын
Thank you so much, your explanation and immediate example are very helpful. Give me crystal clear for the idea what it should be used for. For me this is brilliant feature offer from Angular team.
@DecodedFrontend
@DecodedFrontend 9 ай бұрын
Thank you so much for this feedback, I appreciate it so much 🙏🏻
@oleksandrvorovchenko8674
@oleksandrvorovchenko8674 9 ай бұрын
Very good and detailed explanation! As usual :) Thanks!
@AfifAlfiano
@AfifAlfiano 7 ай бұрын
What the game changer, that's awesome feature
@ichr
@ichr Ай бұрын
Thank you very much, another really great explanation and use cases! :)
@shubhamgoel7703
@shubhamgoel7703 2 ай бұрын
awesome feature thanks sensei 😍
@DecodedFrontend
@DecodedFrontend 2 ай бұрын
🙏
@abdelhamidouanes9941
@abdelhamidouanes9941 4 ай бұрын
Bravo !! Big thanks
@MayuraaSripalan
@MayuraaSripalan 9 ай бұрын
Great explanation! Thank you very much!
@MrVinodkumar92
@MrVinodkumar92 5 ай бұрын
Thanks for the clear explanation. I have a doubt. U said placeholders, loading error are eagerly loaded. But in projects we use again another component inside the error and loading blocks Then we lose the lazy loading right. So how can we achieve even loading the blocks content as lazy loaded.
@OnoshkoAndriy
@OnoshkoAndriy 9 ай бұрын
Great explanation. Thanks for the video!
@pinkmobina
@pinkmobina 9 ай бұрын
Thank you for creating such an awesome content on Angular
@rahulmukherjee4700
@rahulmukherjee4700 2 ай бұрын
Fantastic explanation
@teothe
@teothe 9 ай бұрын
If we wrap all this logic in a component will it be the same example: in an app the loading and error part might be the same in all situations
@ankurmishra8543
@ankurmishra8543 20 күн бұрын
If we use Heavycomponent in import section of app component, then is it not contained in bundle size of app component? If yes then how defer is benifit?
@wafel_dev
@wafel_dev 9 ай бұрын
Do to know any best practices on how to use those? For example should we still use lazy loaded routes or will deffereable views just replace them?
@DecodedFrontend
@DecodedFrontend 9 ай бұрын
Hi! Thanks for your question. Some best practices are: - Use placeholder blocks to avoid flickering in your UI; - Try to avoid applying of the @defer block for the components that appear immediately on the loading screen. - Make sure that lazy component isn't being used anywhere else in your app and doesn't have a reference via @ViewChinld, etc. In this case, it will end up in the main bundle. - Make sure that the components inside the @defer block are standalone. NgModule-based components won't be lazy loaded. - If you are sure that the user will be interacting with the lazy component, consider using prefetching. Regarding the router lazy loading. Deferrable views are not supposed to replace router-based lazy loading. It is absolutely fine to combine those 2 approaches because both of them solve slightly different use cases. I hope my comment was helpful :)
@MichielKikkert
@MichielKikkert 8 ай бұрын
on interaction is also a great feature!
@artemyavorskyi5865
@artemyavorskyi5865 9 ай бұрын
Дякуєм за хороший як зажди розбір Ангуляру!
@jaspernygaard9500
@jaspernygaard9500 9 ай бұрын
Love the explanation and new feature. One question for you. Is it possible using @defer inside of structural directives? If I have a for loop of 3 heavy components, can I defer them and load them one by one when the first one is finished? :)
@stickyamp5996
@stickyamp5996 2 ай бұрын
I always get confused about how angular projects, and frontend in general is deployed/retrieved by the use , i mean, there is a server that sends chunks and the user receive those chunks and the browser generate the js to create the spa functionality, but then comes in server side rendering and SSG and it gets a bit confusing to get the whole picture of what is happening, do you have a video talking about that? or could you do one? I like your advanced-oriented way of making angular videos.
@AndreyKarpovich
@AndreyKarpovich 8 ай бұрын
Defferable views are a bit like Signals (Angular 16 feature) for chunks of template. And also they reminded me a server-side rendering concept using PHP
@eglimaja2549
@eglimaja2549 6 ай бұрын
is this aplication SSR? I have a problem with @loading , doesn't show the content inside loading for example @defer { } @placeholder { Waiting... } @loading { } @error { Couldn't access this component } and the loading component it is shown only if i let outside @loading block
@XINTSUAI
@XINTSUAI 2 ай бұрын
How the @loading, @placeholder etc... knows which component they are waiting, since I can have multiple instances of the same "section"?
@saniyaonmars
@saniyaonmars 9 ай бұрын
new video 🎉🎉🎉
@NoName-1337
@NoName-1337 9 ай бұрын
What would happen, if I have wrappted ComponentA within a @defer block in ComponentB, but in ComponentC, I don't wrap ComponentA in a @defer block. Would ComponantA split from the main-chunk or not? Should I wrapp all same components with @defer to archeve a split from the main-chunk?
@DecodedFrontend
@DecodedFrontend 9 ай бұрын
Hi! Thanks for your question. In your case the componentA will become a part of main bundle because it has a reference in the component that will be eagerly loaded (ComponentC)
@serhiilytvyn8753
@serhiilytvyn8753 9 ай бұрын
Thanks a lot! Your video is awesome! 💛💙
@vOnez212
@vOnez212 8 ай бұрын
Nice job!
@vibhukumar7327
@vibhukumar7327 8 ай бұрын
Hey, Thanks for making this video. How about nested @deferrable view? How does that work? it will be helpful for many people if you make a video on that. Thanks.
@CodeZakk
@CodeZakk 9 ай бұрын
hi thank you epic video. my question is is angular deferable views is like react suspense i use angular,react and vue and i will see any equivalent property for other framework?
@loko1944
@loko1944 9 ай бұрын
In regards to seo. As long as there is no user interaction required to load this should be visible for google, right?
@kashifalikhan4420
@kashifalikhan4420 8 ай бұрын
Very well explained
@azelsky
@azelsky 2 ай бұрын
what is the difference between "when" and "prefetch when"? Why do I need "prefetch when" if I could load content by just "when"?
@chris.p-dev
@chris.p-dev 9 ай бұрын
Great in-depth explanation, deferrable views removed a lot of headaches. I guess idle browser API is not the last one they’re to integrate under the hood. P.S. hope the spinner approach dies in favor of skeleton 😂
@DecodedFrontend
@DecodedFrontend 9 ай бұрын
Thank you! I also think that some new triggers and prefetchers will be introduced. And yeah, I also like more the approach with placeholders rather than spinners 😉
@halynaua
@halynaua 9 ай бұрын
Awesome🤩
@aj.arunkumar
@aj.arunkumar 5 ай бұрын
super awesome
@flywheel56
@flywheel56 9 ай бұрын
Well done!
@CodeSample360
@CodeSample360 8 ай бұрын
Thank you for this video
@DecodedFrontend
@DecodedFrontend 8 ай бұрын
You are welcome 😊
@TuấnTàiĐặng-c7p
@TuấnTàiĐặng-c7p 9 ай бұрын
What a great lesson. Can you give me the source of this?
@anon5992
@anon5992 9 ай бұрын
and react is still stuck with some random hooks from 2018
@MK-we4dl
@MK-we4dl 8 ай бұрын
It also works with any blocks, i use it with )
@orjerby1
@orjerby1 9 ай бұрын
Isn't Deferrable Views in developer preview?
@DecodedFrontend
@DecodedFrontend 9 ай бұрын
Good question. I heard also that it was in dev preview but probably not anymore because I didn't find any mentions about that on the official documentation here - angular.dev/guide/defer
@jonatabiondiJsLover
@jonatabiondiJsLover 9 ай бұрын
Super
@danieldouglas210
@danieldouglas210 7 ай бұрын
I like this feature, but I am worried that Angular templates will soon start looking like php wordpress template with a lot of logic embedded in the views.
@mitterkit
@mitterkit 5 ай бұрын
Fc from thailand
@programandoprogramas-pp4565
@programandoprogramas-pp4565 6 ай бұрын
One of the best videos on Deferrable Views, thank you! 😊😊
@orjerby1
@orjerby1 9 ай бұрын
Isn't Deferrable Views in developer preview?
@DecodedFrontend
@DecodedFrontend 9 ай бұрын
Good question. I heard also that it was in dev preview but probably not anymore because I didn't find any mentions about that on the official documentation here - angular.dev/guide/defer
NgTemplateOutlet in Angular - Everything You Have to Know (2022)
35:15
Decoded Frontend
Рет қаралды 52 М.
小丑揭穿坏人的阴谋 #小丑 #天使 #shorts
00:35
好人小丑
Рет қаралды 35 МЛН
ROSÉ & Bruno Mars - APT. (Official Music Video)
02:54
ROSÉ
Рет қаралды 251 МЛН
ЗНАЛИ? ТОЛЬКО ОАЭ 🤫
00:13
Сам себе сушист
Рет қаралды 3,9 МЛН
Angular Unit Testing | TOP 5 Mistakes to Avoid
23:36
Decoded Frontend
Рет қаралды 5 М.
Web Workers in Action - Performance Boost for Web Applications (2023)
22:51
Angular change detection explained in 5 minutes
6:06
Simplified Courses
Рет қаралды 14 М.
Angular 17 Defer - Improve Performance in Your Application
11:27
Monsterlessons Academy
Рет қаралды 9 М.
What’s new in Angular v18
20:08
Angular
Рет қаралды 132 М.
Deferrable Views in Angular 17
10:01
Web Tech Talk
Рет қаралды 1,9 М.
TOP 6 Mistakes in RxJS code
18:35
Decoded Frontend
Рет қаралды 21 М.
Input Signals in Angular 17.1 - How To Use & Test
14:34
Decoded Frontend
Рет қаралды 29 М.
Myths About Angular in 2024
11:19
Decoded Frontend
Рет қаралды 10 М.
Control Value Accessor in Angular [Advanced, 2020]
18:46
Decoded Frontend
Рет қаралды 59 М.
小丑揭穿坏人的阴谋 #小丑 #天使 #shorts
00:35
好人小丑
Рет қаралды 35 МЛН