OutletContext
Хранит контекстную информацию о RouterOutlet
API
class OutletContext {
constructor(rootInjector: EnvironmentInjector): OutletContext;
outlet: RouterOutletContract | null;
route: ActivatedRoute | null;
children: ChildrenOutletContexts;
attachRef: ComponentRef<any> | null;
readonly injector: EnvironmentInjector;
}
constructor
OutletContext
@returns
OutletContext
outlet
RouterOutletContract | nullroute
ActivatedRoute | nullchildren
ChildrenOutletContextsattachRef
ComponentRef<any> | nullinjector
EnvironmentInjector
Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/router/OutletContext