Sending an array to a different component with mat-sidenav

123 Views Asked by At

I've been searching for a solution but havent found one.

I have a component which displays a list of fetched data and every row has a checkbox. Also im using mat-sidenav to display 2 sidenavs and router-outlet to display main-content. The right sidebar should display properties of selected (by checking) data. How do i get access to the data if they aren't parent-child components? Every selected object goes to the array which i would like to send into my sidebar-component. I was thinking about new service but im not really sure how should it look.

0

There are 0 best solutions below