W3cubDocs

/Angular

OutletContext

Store contextual information about a 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

attachRef

ComponentRef<any> | null

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