I am currently trying to implement an angular 2 application with multiple navigation levels. The problem is that my child components cannot find a router outlet when it is not explicitly declared in the parent component from my routes.
This is the error message i get:
Unhandled Promise rejection: Cannot find primary outlet to load 'EditUserComponent'
I want something like an edit or detail view which shows instead of the list view when i click on a button or link. The views are embedded in a template layout which has navigation structure and provides a router outlet for the content. I also want to target this router-outlet with all my views. I already tried using named outlets but without success. I use a breadcrumb component to show the current route, so i cannot make the edit/detail view to be a sibling of my list component.
To make it more clear, i made a plunker demo:
https://embed.plnkr.co/XXxADnS7q8FCfF4W84tS/
How can i solve the outlet issue and target the layout's router-outlet from child components?