Spec-Zone.ru › Angular

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
@paramrootInjectorEnvironmentInjector
@returnsOutletContext

outlet

RouterOutletContract | null

route

ActivatedRoute | null

children

ChildrenOutletContexts

attachRef

ComponentRef<any> | null

injector

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API