@switch (buttonType) { @case ('icon') { {{ icon }} } @case ('text') { {{ buttonText }} } @case ('menu-item') { {{ icon }} {{ buttonText }} } } @for (command of arrayCommands; track command.slug) { 1)" (click)="onCommandSelect(command.slug)"> {{ command.translationKey | translate }} }