Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DetachedLoader

Wrapper component used for loading components when navigating It uses DetachedContainer as selector so that it is containerRef is not attached to the visual tree.

Hierarchy

  • DetachedLoader

Implements

  • OnDestroy

Index

Constructors

constructor

  • new DetachedLoader(resolver: ComponentFactoryResolver, changeDetector: ChangeDetectorRef, containerRef: ViewContainerRef, appRef: ApplicationRef): DetachedLoader

Properties

Private appRef

appRef: ApplicationRef

Private changeDetector

changeDetector: ChangeDetectorRef

Private containerRef

containerRef: ViewContainerRef

Private disposeFunctions

disposeFunctions: Array<function>

Private resolver

resolver: ComponentFactoryResolver

Methods

detectChanges

  • detectChanges(): void

loadComponent

  • loadComponent(componentType: Type<any>): Promise<ComponentRef<any>>

Private loadInLocation

  • loadInLocation(componentType: Type<any>): Promise<ComponentRef<any>>

loadWithFactory

  • loadWithFactory<T>(factory: ComponentFactory<T>): ComponentRef<T>

ngOnDestroy

  • ngOnDestroy(): void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method