Qirrat Abbas
Qirrat Abbas

Reputation: 11

Dynamic Sub-Navigation Bar Based on Selected Menu Item in Angular

I am working on an Angular application where I have a main navigation bar that always stays visible. Some menu items (e.g., "Asset") should display a sub-navigation bar below the main navbar when clicked, while others should not. If another menu item with a different sub-navigation is clicked, the sub-nav should update accordingly. If a menu item without a sub-navigation is selected, the sub-nav should disappear.

I want to achieve this dynamically so that:

What I have tried:

Would love to hear the best approach to handle this efficiently. Thanks!

Upvotes: 0

Views: 13

Answers (0)

Related Questions