Мой код:
<li *ngFor="let item of list; let i=index" class="dropdown-item" (click)="onClick(item)">
<template [ngIf]="i<11">{{item.text}}</template>
</li>
Я пытаюсь, чтобы в любой момент отображалось только 10 элементов списка. Как предлагается в ответе здесь, я использовал ngIf, но в результате на странице появляются пустые элементы списка (более 10).