pass data for dynamic components

This commit is contained in:
Cilibiu Bogdan 2019-07-08 08:34:37 +03:00
parent 1681a47f49
commit 7e52c54754

View File

@ -12,7 +12,10 @@
<ng-container *ngFor="let child of actionRef.children; trackBy: trackById">
<ng-container [ngSwitch]="child.type">
<ng-container *ngSwitchCase="'custom'">
<adf-dynamic-component [id]="child.component"></adf-dynamic-component>
<adf-dynamic-component
[id]="child.component"
[data]="child.data"
></adf-dynamic-component>
</ng-container>
<ng-container *ngSwitchDefault>
<app-toolbar-menu-item [actionRef]="child"></app-toolbar-menu-item>