File

packages/ui/src/lib/io/slot-host.directive.ts

Description

The field host is a helper to load components inside its view container. see https://angular.io/guide/dynamic-component-loader

Metadata

Selector [ecSlotHost]

Index

Properties

Constructor

constructor(viewContainerRef: ViewContainerRef)

The constructor exposes the viewContainer that is used to load components into from outside.

Parameters :
Name Type Optional
viewContainerRef ViewContainerRef No

Properties

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) {}
}

result-matching ""

    No results matching ""