我有以下模板:
<div *ngFor="let item of myArray | customPipe1 | customPipe2; let l = length"> Here is the length of my ngFor : {{l}} </div>
<div *ngFor="let item of myArray | customPipe1 | customPipe2 as result"> Here is the length of my ngFor : {{result.length}} </div>