packages/ui/src/lib/io/slot-host.directive.ts
The field host is a helper to load components inside its view container. see https://angular.io/guide/dynamic-component-loader
Selector | [ecSlotHost] |
Properties |
|
constructor(viewContainerRef: ViewContainerRef)
|
||||||
The constructor exposes the viewContainer that is used to load components into from outside.
Parameters :
|
Public viewContainerRef |
Type : ViewContainerRef
|
import { Directive, ViewContainerRef } from '@angular/core';
/** The field host is a helper to load components inside its view container.
* see https://angular.io/guide/dynamic-component-loader
* */
@Directive({
selector: '[ecSlotHost]',
})
export class SlotHostDirective {
/** The constructor exposes the viewContainer that is used to load components into from outside.*/
constructor(public viewContainerRef: ViewContainerRef) {}
}