Тёмный

How to create a Nested Sidebar in Angular 18 with Material Components! 

Zoaib Khan
Подписаться 5 тыс.
Просмотров 6 тыс.
50% 1

Опубликовано:

 

6 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 34   
@lshadowSFX
@lshadowSFX 2 месяца назад
Your content is SUPER USEFUL plus you don't only show the topic of the video itself but you also teach proper ways to do it when comunicating between components!
@ZoaibKhan
@ZoaibKhan 2 месяца назад
Thanks man! Glad you're finding it useful :) Everything we create goes through a process so it's important to understand the process as well, so that we can learn lessons for the future! Thanks for your input
@lshadowSFX
@lshadowSFX 2 месяца назад
@@ZoaibKhan I trully love your content! It is super easy to follow, it does feel like you always know what you are doing and not just "guessing" like a lot of people! your channel is super instructive! new subscriber here! Could please make a tutorial on how to properly migrate to angular 18 from older versions of angular? like angular 16 to angular 18, for example. I've tried doing it and there are always so many errors, problems with installed libraries because of versions support, etc., plus, the older versions of angular managed all components as a non-standalone, so everything went into a app.module.ts huge file with all services, components, custom pipes, etc. With no configuration for hydration and what not, so how is it done? :( I'd really appreaciate it! and i'm sure a lot of people will too! thank you so much for all your work!
@ZoaibKhan
@ZoaibKhan 2 месяца назад
Well, a little secret: I had to record this video multiple times, because the first time I made a lot of mistakes which would've caused a lot of confusion. But that's just the process all of us creators have to go through :) Thanks for the subscribe and I hope you find more value here. About your suggestions, that is another frequently asked topic. And the only reason I haven't yet created a video on upgrade guide to latest version is because of its complexity. I recently upgraded one of my client's apps to the newest version - and from upgrading material to standalone to routing/state and third party libraries - it can get messy pretty quickly. But I've it in my list of todos - and hopefully will get to create one soon. I have an older chat app in Angular - maybe that would be a good cast study to follow for an upgrade to the latest version :)
@lshadowSFX
@lshadowSFX 2 месяца назад
@@ZoaibKhan I can tell you put a lot of effort into the videos! It makes it really pleasant to watch and listen to! thank you very much!
@yellaiahg9366
@yellaiahg9366 4 дня назад
Thanks for the information. Please provide multiple sub menus handling. Example: If we select one menu, showing all submenus.
@ZoaibKhan
@ZoaibKhan 4 дня назад
Can you elaborate that a bit? You mean expand all nested menus at once?
@rohitkharche7562
@rohitkharche7562 2 месяца назад
I was scouting internet for this implementation and then found you uploaded video about it, thanks for this. Would love a similar with material 3 as well.
@ZoaibKhan
@ZoaibKhan 2 месяца назад
You're welcome 🤗 About material 3, it's going to change the look and feel of the sidebar a bit, so I'm not sure. Currently it is mimicking the RU-vid studio sidebar
@informer9261
@informer9261 2 месяца назад
sir please make an video of how to share data between in different siblings components and how to setup up architechture of an project when we start build apllication.
@ZoaibKhan
@ZoaibKhan 2 месяца назад
Ok, those are common issues, so I've noted them for future videos.
@nilpeshpatel1373
@nilpeshpatel1373 3 дня назад
I think with simple tweak it can be for n level subitems
@ZoaibKhan
@ZoaibKhan 3 дня назад
Yup, check out the followup video on recursive components!
@BatmunkhD
@BatmunkhD 22 дня назад
Very useful, thanks. How to auto toggle/expand less/.
@ZoaibKhan
@ZoaibKhan 22 дня назад
Glad you found it useful! You mean you want to toggle the nested state programmatically from outside the component?
@BatmunkhD
@BatmunkhD 21 день назад
@@ZoaibKhanyes, automatically expand less when moving to other title.
@ZoaibKhan
@ZoaibKhan 20 дней назад
Means on navigation? Hmm, that's interesting. We can handle that by listening to a Navigation event inside the sidenav, then simply making the nested signal false when that happens.
@AidosOmurzakov
@AidosOmurzakov 20 дней назад
Great job. content is super usefull can you show example when sidebar is collapsed and show subitems not as icons but show as a menu when hovering the main root icon show on the right menu with child icons routes
@ZoaibKhan
@ZoaibKhan 20 дней назад
You mean like a popup nested menu?
@AidosOmurzakov
@AidosOmurzakov 20 дней назад
@@ZoaibKhan yes
@ZoaibKhan
@ZoaibKhan 20 дней назад
Hmm, hiding the subitems in collapsed state is easy, but creating a separate popup for those items can be a bit challenging. If I had to do it, I'd use the angular cdk overlay package to create a custom overlay and open and close on hover/hover out.
@GerardoRojasPacheco
@GerardoRojasPacheco 2 месяца назад
Excellent, thank you very much for your contribution, very clear and useful Please, how could I make the menu expand when I hover over it, something like adminlte
@GerardoRojasPacheco
@GerardoRojasPacheco 2 месяца назад
I found the solution and share it..:
@ZoaibKhan
@ZoaibKhan 2 месяца назад
Perfect! One improvement might be to delay the mouse out a bit and wait for the user to be truly out of the sidenav and then collapse it. To prevent mistakes...
@DirtySouth33T
@DirtySouth33T Месяц назад
great videos, i guess i am using a differnet version of material and things have changed a bit, what version should i be using for this video and the original ones?
@ZoaibKhan
@ZoaibKhan Месяц назад
It's using angular material 2 - which is default UpTo angular v17. From v18 onwards, it's material 3
@imohanreddy
@imohanreddy 2 месяца назад
Hi , you are using function call menuItems() for iterating , which is a function is it optimal? as angular will have verify and update everytime irrespective of menuItems array changing?
@ZoaibKhan
@ZoaibKhan 2 месяца назад
It is a signal, Mohan! Signal values are accessed just like you're calling a function. As we move forward with the new changes in Angular and Zoneless apps, using signals in templates is the recommended approach!
@imohanreddy
@imohanreddy 2 месяца назад
@@ZoaibKhan oh , Thanks for the clarification 🙌
@dcoding
@dcoding 28 дней назад
please next vidio
@ZoaibKhan
@ZoaibKhan 28 дней назад
It's in this playlist ru-vid.com/group/PLHbz-DWIAPJC9QksAO1PHobAGXde3CgIz&si=7hyhPKUKbUUKf79h
@wams4103
@wams4103 22 дня назад
Good evening Zoaib Khan ! Thank you for the usefull tutorials and clear explanation. So I worked on the four tutorial but not in a standalone. I separated component. Now then I face one error in nested tutorial. here the message I have : NG2: Type 'import("D:/AngularDataProjects/Dashboard1/src/app/components/custom-sidenav/custom-sidenav.component").MenuItem' is not assignable to type 'import("D:/AngularDataProjects/Dashboard1/src/app/components/menu-item/menu-item.component").MenuItem'. Types of property 'route' are incompatible. Type 'string | undefined' is not assignable to type 'string'. Type 'undefined' is not assignable to type 'string'. src/app/components/custom-sidenav/custom-sidenav.component.html:15:20
@ZoaibKhan
@ZoaibKhan 22 дня назад
Good evening to you too :) Your error seems to point to a problem with the route. If possible, could you show the routes code?
@wams4103
@wams4103 19 дней назад
@@ZoaibKhan Good evening Dear Zoaib ! Thank you for your response. the issue was resolved. I really appreciated.
Далее
Building a Recursive Angular Sidebar Component
25:02
Просмотров 1,5 тыс.
Kafli 1.5 í Forritun í MATLAB
23:31
Просмотров 1
IT'S MY LIFE + WATER  #drumcover
00:14
Просмотров 11 млн
Are you using Angular Signal Effects in the RIGHT way?
11:13
TOP 6 Mistakes in RxJS code
18:35
Просмотров 18 тыс.
Dynamic Component in Angular (2024)
17:48
Просмотров 15 тыс.
Angular Menu: A Step-by-Step Tutorial
21:23
Просмотров 3,5 тыс.
What’s new in Angular v18
20:08
Просмотров 120 тыс.
My opinion on Angular 18 & React 19
9:47
Просмотров 56 тыс.
IT'S MY LIFE + WATER  #drumcover
00:14
Просмотров 11 млн