I really should paste source-code here, but I do not know which part of those 300 lines in my component I should show you.
Maybe the error-message "EXCEPTION: Error: Uncaught (in promise): Cannot find default outlet" has a general solution to it? Am I missing some parameter or tag?
<router-outlet>
where the router expects it ;-)ROUTER_PROVIDERS
more than once in your application (either only at the root component or only in bootstrap()
)*ngIf*
to the <router-outlet>
or to a parent of <router-outlet>
See also https://github.com/angular/angular/issues/8539
I found it:
The component hosting the subcomponent needs to declare
directives: [ROUTER_DIRECTIVES],
otherwise the is not recognized, as it seems.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With