NgTemplateOutlet

Experimental

Directive

What it does

Inserts an embedded view from a prepared TemplateRef

How to use

<ng-container *ngTemplateOutlet="templateRefExp; context: contextExp"></ng-container>

Class Overview

class NgTemplateOutlet implements OnChanges {
constructor(_viewContainerRef: ViewContainerRef)

ngTemplateOutletContext : Object
ngTemplateOutlet : TemplateRef<any>
ngOutletContext 
ngOnChanges(changes: SimpleChanges)

}

Selectors

[ngTemplateOutlet]

Class Description

Constructor

constructor(_viewContainerRef: ViewContainerRef)

Class Details

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