What it does
Inserts an embedded view from a prepared TemplateRef
How to use
Class Overview
class NgTemplateOutlet implements OnChanges {constructor(_viewContainerRef: ViewContainerRef)
ngTemplateOutletContext: Object
ngTemplateOutlet: TemplateRef<any>
ngOutletContext
ngOnChanges(changes: SimpleChanges)
}
Selectors
[ngTemplateOutlet]
Class Description
You can attach a context object to the EmbeddedViewRef by setting [ngTemplateOutletContext].
[ngTemplateOutletContext] should be an object, the object's keys will be available for binding
by the local template let declarations.
Note: using the key $implicit in the context object will set it's value as default.
Example
Class Details
exported from common/index, defined in common/src/directives/ng_template_outlet.ts