revert: feat(router): better warning message when a router outlet has not been instantiated (#38920)
This reverts commit [1609815]. The warning that was added created more confusion than it solved and also warned for valid use-cases. PR Close #38920
This commit is contained in:
parent
7d5b5153cf
commit
04d0aa6781
@ -186,10 +186,6 @@ export class ActivateRoutes {
|
||||
// Activate the outlet when it has already been instantiated
|
||||
// Otherwise it will get activated from its `ngOnInit` when instantiated
|
||||
context.outlet.activateWith(future, cmpFactoryResolver);
|
||||
} else if (isDevMode() && console && console.warn) {
|
||||
console.warn(
|
||||
`A router outlet has not been instantiated during routes activation. URL Segment: '${
|
||||
future.snapshot._urlSegment}'`);
|
||||
}
|
||||
|
||||
this.activateChildRoutes(futureNode, null, context.children);
|
||||
|
Loading…
x
Reference in New Issue
Block a user