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
a91f0f6b82
commit
e498ea9b5a
|
@ -185,10 +185,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 ((typeof ngDevMode === 'undefined' || ngDevMode) && 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…
Reference in New Issue