Passing data in Angular

Viewed 70

How can I put an Angular component into the navbar?

enter image description here

1 Answers

I solved this by separating two divs in one component to two components.

Then pass the data via parent-child relationship using @Input() decorator, from sidebar-dashboard to the list component.

Then the separated components which has no relationship, I used service to pass the data, so that whatever is selected in list component will produce its details in the results component.

Related