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:
Marley Powell 2020-09-21 13:34:39 +01:00 committed by Misko Hevery
parent a91f0f6b82
commit e498ea9b5a
1 changed files with 0 additions and 4 deletions

View File

@ -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);