Reputation: 11
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