NgTemplateOutlet

Experimental

Directive

What it does

Inserts an embedded view from a prepared TemplateRef

How to use

  1. <template [ngTemplateOutlet]="templateRefExpression"
  2. [ngOutletContext]="objectExpression">
  3. </template>

Class Overview

class NgTemplateOutlet implements OnChanges {
constructor(_viewContainerRef: ViewContainerRef)

}

Selectors

[ngTemplateOutlet]

Class Description

Constructor

constructor(_viewContainerRef: ViewContainerRef)

Class Details

exported from @angular/common/index, defined in @angular/common/src/directives/ng_template_outlet.ts