0

we can check the last index of the loop in the template using 'last' like the example below

but how do we check on the template for the first index ? like for example I only want to show the paragraph on the first index

 <div *ngFor="let p of history; last as l" fxLayout="row"
       <p>Test</p>
</div> 

0 Answers0