My app.component.html looks as follows:
<app-header></app-header>
<router-outlet></router-outlet>
I am trying to have a component from my router-outlet section pass its URL id to a dialog I have in my app-header.
const id = this.route.snapshot.paramMap.get('id');
This will produce a 2 when my url is website.com/dash/2.
How can I pass the 2 to my dialog (that exists in app-header)? I know how to do this when the dialog is in the same component but have never had luck when they exist like the way I described above.