if-multichannel-directive.md 1.2 KB


title: "IfMultichannelDirective" weight: 10 date: 2023-07-14T16:57:51.263Z showtoc: true

generated: true

IfMultichannelDirective

# IfMultichannelDirective {{< generation-info sourceFile="packages/admin-ui/src/lib/core/src/shared/directives/if-multichannel.directive.ts" sourceLine="21" packageName="@vendure/admin-ui">}} Structural directive that displays the given element if the Vendure instance has multiple channels configured. *Example* ```html
``` ## Signature ```TypeScript class IfMultichannelDirective extends IfDirectiveBase<[]> { constructor(_viewContainer: ViewContainerRef, templateRef: TemplateRef, dataService: DataService) } ``` ## Extends * IfDirectiveBase<[]> ## Members ### constructor {{< member-info kind="method" type="(_viewContainer: ViewContainerRef, templateRef: TemplateRef<any>, dataService: DataService) => IfMultichannelDirective" >}} {{< member-description >}}{{< /member-description >}}