Opérador Ternario Click
<a (click)="page > 1 ? setPage(page - 1) : null">Previous</a></li>
Confused Cowfish
<a (click)="page > 1 ? setPage(page - 1) : null">Previous</a></li>