Skip to content

Commit 4e2c1f4

Browse files
committed
feat: removed unwanted use of async pipe in product-row.component.ts
1 parent 5bbdc3c commit 4e2c1f4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

apps/signal/54-pipe-observable-to-signal/src/app/product-row.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { AsyncPipe } from '@angular/common';
21
import {
32
ChangeDetectionStrategy,
43
Component,
@@ -13,11 +12,11 @@ import { Product } from './product.model';
1312
selector: 'tr[product-row]',
1413
template: `
1514
<td>{{ productInfo.name }}</td>
16-
<td>{{ productInfo.priceA | currency | async }}</td>
17-
<td>{{ productInfo.priceB | currency | async }}</td>
18-
<td>{{ productInfo.priceC | currency | async }}</td>
15+
<td>{{ productInfo.priceA | currency }}</td>
16+
<td>{{ productInfo.priceB | currency }}</td>
17+
<td>{{ productInfo.priceC | currency }}</td>
1918
`,
20-
imports: [AsyncPipe, CurrencyPipe],
19+
imports: [CurrencyPipe],
2120
providers: [CurrencyService],
2221
changeDetection: ChangeDetectionStrategy.OnPush,
2322
})

0 commit comments

Comments
 (0)