Angular 4 Insert Items into Component

0

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?

    
asked by anonymous 09.01.2018 / 13:11

1 answer

0

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.

    
09.01.2018 / 15:55