I have a component that is a menu. it is used on all pages of my application
- Item 01
- Item 02
- Item 03
But I need that if any page needs to add any more items in this menu I can! How do I do this?
I have a component that is a menu. it is used on all pages of my application
But I need that if any page needs to add any more items in this menu I can! How do I do this?
Turn the menu logic into a service, in the menu component you will consume the data, and in the other components you will make the changes.