Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DetachedLoader

Hierarchy

  • DetachedLoader

Index

Constructors

constructor

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

    • resolver: ComponentFactoryResolver
    • changeDetector: ChangeDetectorRef
    • containerRef: ViewContainerRef

    Returns DetachedLoader

Properties

Private changeDetector

changeDetector: ChangeDetectorRef

Private containerRef

containerRef: ViewContainerRef

Private resolver

resolver: ComponentFactoryResolver

Methods

detectChanges

  • detectChanges(): void
  • Returns void

loadComponent

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

    • componentType: Type<any>

    Returns Promise<ComponentRef<any>>

Private loadInLocation

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

    • componentType: Type<any>

    Returns Promise<ComponentRef<any>>

loadWithFactory

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

    • T

    Parameters

    • factory: ComponentFactory<T>

    Returns ComponentRef<T>

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