We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7883d0c commit 6e8f29cCopy full SHA for 6e8f29c
libs/cdk/template/README.md
@@ -14,8 +14,16 @@ The term list does include: arrays and interables.
14
<ul>
15
<li *rxIfList="[1,2,3]">List is not empty</li>
16
</ul>
17
-```
18
+```
19
+Similar to `ngIf` `rxIfList` supports templates for `then` and `else`:
20
+```html
21
+<ul>
22
+ <li *rxIfList="[1,2,3]; then thenTpl else emptyListTpl"></li>
23
+</ul>
24
+<ng-template #thenTpl>List is not empty</ng-template>
25
+<ng-template #emptyListTpl>List is empty.</ng-template>
26
27
#### `RunFnPipe`
28
This pipe will run any function of your component and
29
make use of Angular's memoization to prevent unnecessary
0 commit comments