Modern Angular Lazy Loading Guide!

  Рет қаралды 2,893

Zoaib Khan

Zoaib Khan

Күн бұрын

Пікірлер: 17
@DirtySouth33T
@DirtySouth33T 4 ай бұрын
awesome video! i implemented this the other day in my app :) glad you did a video on it helped me learn more about it
@ZoaibKhan
@ZoaibKhan 4 ай бұрын
Thanks Adam! Lazy loading is an absolute must for any large app or even a medium sized one :)
@eneajahollari1203
@eneajahollari1203 4 ай бұрын
In v18.2 there is an automatic migration schematic which can convert all your standalone components in routes to be lazy loaded. You can run it with: ng generate @angular/core:route-lazy-loading
@ZoaibKhan
@ZoaibKhan 4 ай бұрын
Aah, that will be very helpful! Thanks for the info, Enea
@fayazvar3948
@fayazvar3948 4 ай бұрын
Best video, lot of information, i was not aware about that default keyword.
@ZoaibKhan
@ZoaibKhan 4 ай бұрын
Glad you liked it, Fayaz! Default adds a nice touch :)
@daviamerico2268
@daviamerico2268 2 ай бұрын
how does the user know a component is lazy laoding I mean it takes some time to angular takes js from the server, how can I make an UI which holds during that time?
@ZoaibKhan
@ZoaibKhan 2 ай бұрын
For route based lazy loading, you can use router events for the purpose. For defer block, there is an accompanying loading block and placeholder to show something when those states happen
@shaik-arif-dev
@shaik-arif-dev 3 ай бұрын
Does lazy loading apply on html too
@ZoaibKhan
@ZoaibKhan 3 ай бұрын
Hmm, interesting. I haven't tried that out honestly.
@shaik-arif-dev
@shaik-arif-dev 3 ай бұрын
@@ZoaibKhan I have a doubt like let's take a home component html in that I have a service component html tag but I don't want to see " service heading div " in home component html but okay with seeing in service component can we implement that
@davebudah
@davebudah 2 ай бұрын
Hie , can you show us the best implementation for ROLE BASED ACCESS with this particular kind of project, Im sure it would be very helpful. You don't really need to have a backend to show us. I just want to see how we can show certain routes to USER A , and other routes to USER B. I HOPE YOU WILL SEE THIS MESSAGE. THANK YOU SIR.
@ZoaibKhan
@ZoaibKhan 2 ай бұрын
Hey! I'll add to my list of future videos. It's a good idea, so thanks for that :) But a general approach could be to just modify the menu items when the app loads and you get the current logged in role. For that we can keep the menu items in a shared state/service. Then for added protection, we can also add route guards to each route checking for the role and denying permission accordingly.
@austinZen8800
@austinZen8800 4 ай бұрын
well done my friend!
@ZoaibKhan
@ZoaibKhan 4 ай бұрын
Glad you liked it, Austin! How're you keeping up? :)
@fayazvar3948
@fayazvar3948 4 ай бұрын
@defer {} it is very interesting.
@ZoaibKhan
@ZoaibKhan 4 ай бұрын
Yes and very powerful! :)
Building a Recursive Angular Sidebar Component
25:02
Zoaib Khan
Рет қаралды 3,1 М.
Deferrable Views - New Feature in Angular 17
15:31
Decoded Frontend
Рет қаралды 24 М.
УДИВИЛ ВСЕХ СВОИМ УХОДОМ!😳 #shorts
00:49
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 20 МЛН
One day.. 🙌
00:33
Celine Dept
Рет қаралды 76 МЛН
Auto Hiding Sticky Navbar with Angular and Motion One!
18:41
Zoaib Khan
Рет қаралды 2,1 М.
Angular 19 is a BEAST of a release!
19:39
Maximilian Schwarzmüller
Рет қаралды 46 М.
Building a 3D Product Configurator with Angular Three!
27:30
Zoaib Khan
Рет қаралды 2 М.
Angular 19 Resource API is exactly what we needed!
15:38
Zoaib Khan
Рет қаралды 3,2 М.
8 React Js performance optimization techniques YOU HAVE TO KNOW!
11:23
Lazy Loading Images Angular - Increase Performance Without Libraries
13:57
Monsterlessons Academy
Рет қаралды 4,3 М.
Every Developer Needs a Raspberry Pi
27:27
Sam Meech-Ward
Рет қаралды 1 МЛН
Modern Angular 19 Crash Course - E-commerce App!
1:19:03
Zoaib Khan
Рет қаралды 5 М.
7 Years of Software Engineering Advice in 18 Minutes
18:32
EASY Draggable Dashboard with Angular CDK DropList!
21:53
Zoaib Khan
Рет қаралды 2,1 М.