@for (element of data; track element) { @if (element['type'] === 'header') { @for (cell of element['cells']; track $index;) { {{ cell }}
}
} @if (element['type'] === 'content') { @if (element['description']) {
{{ element['description'] }} {{ element['description'] }}
} @for (cell of element['cells']; track $index;) { {{ cell }} }
} @if (element['type'] === 'footer') { @for (cell of element['cells']; track $index;) {
{{ cell }}
}
} @if (element['type'] === 'toggleSection') { {{ element['header'] }} @for (row of element['content']; track row) { @if (row['description']) {
{{ row['description'] }} {{row['description']}}
}> @for (cell of row['cells']; track $index;) { {{ cell }} }
}
} }