rook
rook

Reputation: 3008

Angular 2 <template> and pipes

What's the syntax to use a pipe (async for example) in this construction:

<template let-item [ngForOf]="items">
   ...
</template>

P.S. I know how to use a pipe with *ngFor but I need <template>

Thank you.

Upvotes: 2

Views: 1752

Answers (1)

G&#252;nter Z&#246;chbauer
G&#252;nter Z&#246;chbauer

Reputation: 657536

There is nothing special

<template let-item [ngForOf]="items | somePipe">

Upvotes: 3

Related Questions