🚨 Announcing Vendure v2 Beta

IfMultichannelDirective

IfMultichannelDirective

Structural directive that displays the given element if the Vendure instance has multiple channels configured.

Example

<div *vdrIfMultichannel class="channel-selector">
  <!-- ... -->
</ng-container>

Signature

class IfMultichannelDirective extends IfDirectiveBase<[]> {
  constructor(_viewContainer: ViewContainerRef, templateRef: TemplateRef<any>, dataService: DataService)
}

Extends

  • IfDirectiveBase<[]>

Members

constructor

method
type:
(_viewContainer: ViewContainerRef, templateRef: TemplateRef<any>, dataService: DataService) => IfMultichannelDirective