@switch (type) { @case ('button') { } @case ('flat-button') { } @case ('stroked-button') { } @default { } } @for (child of actionRef.children; track trackByActionId($index, child)) { @switch (child.type) { @case ('custom') { } @default { } } }