0.0.4 • Published 1 year ago
ngx-for v0.0.4
NgxFor
This library was generated with Angular CLI version 17.3.0.
This is a custom directive like the ngFor but with a few differences.
Installation
npm install ngx-for
Usage
app.component.html
<div *ngxFor="let user of users; showMoreTemplate: showMore; showCount: 4">
<span>
{{user.name}}
</span>
</div>
<ng-template #showMore let-remaining="remaining">+{{remaining}}</ng-template>