Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ef2b85f

Browse files
authored
docs(template): improve local variables explanation
* Update local-variables.md to include `*ngIf="num$ as n"` [This part of docs](https://www.rx-angular.io/docs/template/concepts/local-variables) was unclear to me (at first glance). There are many approaches to give it clarity. My suggestion is to include `*ngIf="num$ as n"` as well. * docs: update unclear explanation of async pipe usage
1 parent 4166a1b commit ef2b85f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/docs/docs/template/concepts/local-variables.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ Both ways can reduce the usage of pipes the `async` pipe (or any other pipe).
1515
**With `async` pipe**
1616

1717
```html
18-
<ng-container> {{ n | async }} {{ n | async}} {{ n | async}} </ng-container>
18+
<ng-container *ngIf="num$ as n">
19+
{{ n | async }} {{ n | async}} {{ n | async}}
20+
</ng-container>
1921
```
2022

2123
**With `*rxLet` directive**

0 commit comments

Comments
 (0)