Angular, Typescript, JavaScript.
block to handle the empty collections passed to @for We can add an @empty block under the @for block. The @empty block's content is rendered if the collection we passed to the @for block is empty: <ul> @for (item of emptyCollection; track item.id;) { <li><strong>{{item.name}}</strong></li> } @empty