Source
@Input() set ngTemplateOutlet(TemplateRef templateRef) { if (_insertedViewRef != null) { _viewContainerRef .remove(this._viewContainerRef.indexOf(this._insertedViewRef)); } if (templateRef != null) { this._insertedViewRef = this._viewContainerRef.createEmbeddedView(templateRef); } }