Angular 17 Defer block: Create Lazy Loaded Material Tabs UI with `when` trigger!

  Рет қаралды 3,752

Zoaib Khan

Zoaib Khan

8 ай бұрын

#Angular #Defer #Tabs
Learn how to create a lazy loaded material tabs UI in Angular v17 using the new defer block with the `when` trigger. It's really powerful!
Code on github: github.com/thisiszoaib/angula...
Want to learn how to create a full stack application with Angular and Firebase? Grab my new course 'Angular Firebase Authentication: Create Full Sign up App' with 50% off here:
www.udemy.com/course/angular-...
Follow for more Angular tutorials, tips and tricks:
Twitter - / zoaibdev
Facebook - / thisiszoaib
LinkedIn - / zoaib-khan-b6456815
Cheers :)

Пікірлер: 11
@CodeSample360
@CodeSample360 5 ай бұрын
It helps me to understand. Thank you.
@ZoaibKhan
@ZoaibKhan 5 ай бұрын
Glad it helped! ☺️
@bishwadeepghosh9140
@bishwadeepghosh9140 7 ай бұрын
how a standalone component will be lazy loaded in angular 17 based on routing, like we use ng module as of now, and if we will use ngodule only what is the use of standalone components
@ZoaibKhan
@ZoaibKhan 7 ай бұрын
It's much simpler with standalone components. There's a new function called loadComponent which you can use directly in your routes. Link to official docs: angular.io/guide/standalone-components#routing-and-lazy-loading
@Humppakarajat
@Humppakarajat 4 ай бұрын
Great video mate! Unfortunately @defer only works with components which are part of your application. It does not work with components which are located in a library.
@ZoaibKhan
@ZoaibKhan 4 ай бұрын
Thanks :) Third party components will be deferred if you encapsulate them in your own component. I recall I did it in another video with the KZbin player package! If I'm not wrong, the components to be deferred need to be standalone - maybe that is the reason
@pranavjadhav1136
@pranavjadhav1136 7 ай бұрын
Hi mat tags are not working.
@ZoaibKhan
@ZoaibKhan 7 ай бұрын
You mean mat tabs?
@meghadeshpande6806
@meghadeshpande6806 2 ай бұрын
can @defer replace lazy loading modules?
@ZoaibKhan
@ZoaibKhan 2 ай бұрын
Defer is meant to be used for component level granular lazy loading. Route level lazy loading can be done with modules and components both. If you're thinking of replacing lazy loading of modules, then look towards the lazy loading of the parent component by using loadChildren in the routes file.
@meghadeshpande6806
@meghadeshpande6806 2 ай бұрын
@@ZoaibKhan thank you very much. Understood now.
I tested Angular 18 Zoneless mode and this is what I found out!
16:24
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 82 МЛН
Amazing weight loss transformation !! 😱😱
00:24
Tibo InShape
Рет қаралды 58 МЛН
Sigma girl and soap bubbles by Secret Vlog
00:37
Secret Vlog
Рет қаралды 12 МЛН
HAPPY BIRTHDAY @mozabrick 🎉 #cat #funny
00:36
SOFIADELMONSTRO
Рет қаралды 18 МЛН
Easy, Dynamic Angular Material Theming with just 6 colors!
20:26
Zoaib Khan
Рет қаралды 4,6 М.
Customizing Angular Material just got easier in v18!
14:12
Zoaib Khan
Рет қаралды 8 М.
What's new in Angular 17
9:36
Code with Ahsan
Рет қаралды 14 М.
Deferrable Views - New Feature in Angular 17
15:31
Decoded Frontend
Рет қаралды 19 М.
Are you using Angular Signal Effects in the RIGHT way?
11:13
Deferrable views in Angularv17
6:04
Angular
Рет қаралды 21 М.
How To Load Images Like A Pro
15:48
Web Dev Simplified
Рет қаралды 364 М.
WTF is "Zone.js" and is it making your app slow?
13:21
Joshua Morony
Рет қаралды 53 М.
Lazy Load Like a Pro: Angular 17's @defer Guide!
19:44
WebDev Frontiers
Рет қаралды 259
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 62 МЛН
Сколько реально стоит ПК Величайшего?
0:37
НЕ БЕРУ APPLE VISION PRO!
0:37
ТЕСЛЕР
Рет қаралды 345 М.
Telefonu Parçaladım!😱
0:16
Safak Novruz
Рет қаралды 26 МЛН
Rate This Smartphone Cooler Set-up ⭐
0:10
Shakeuptech
Рет қаралды 4,3 МЛН
Kumanda İle Bilgisayarı Yönetmek #shorts
0:29
Osman Kabadayı
Рет қаралды 1,9 МЛН