Newer
Older
<aspect-button
*ngIf="elementModel.type === 'button'"
#elementComponent
[elementModel]="elementModel | cast: ButtonElement"
(buttonActionEvent)="applyButtonAction($event)">
</aspect-button>
<aspect-image
*ngIf="elementModel.type === 'image'"
#elementComponent
[elementModel]="elementModel | cast: ImageElement"
(elementValueChanged)="changeElementCodeValue($event)">
</aspect-image>
<aspect-math-table
*ngIf="elementModel.type === 'math-table'"
#elementComponent
[elementModel]="elementModel | cast: MathTableElement"
[tableModel]="tableModel"
(elementValueChanged)="changeElementCodeValue($event)">
</aspect-math-table>