Skip to content

Commit a0d56dd

Browse files
authored
Merge pull request #1619 from rx-angular/docs/add-implicit-to-rx-if
docs: add the $implicit to rx-if docs
2 parents 825c9bf + 3f2e326 commit a0d56dd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

apps/docs/docs/template/api/rx-if-directive.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ A nice feature of the `*rxIf` directive is, it provides 2 ways to access the [re
161161
162162
The following context variables are available for each template:
163163

164+
- $implicit: `T` the default variable accessed by `let val`
164165
- error: `boolean` | `Error`
165166
- complete: `boolean`
166167
- suspense: `boolean`
@@ -170,12 +171,14 @@ You can use them like this:
170171
**Context Variables on then template**
171172

172173
```html
173-
<ng-container *rxIf="show$; let s = suspense; let e = error, let c = complete">
174+
<ng-container
175+
*rxIf="customer$; let customer; let s = suspense; let e = error, let c = complete"
176+
>
174177
<loader *ngIf="s"></loader>
175178
<error *ngIf="e"></error>
176179
<complete *ngIf="c"></complete>
177180

178-
<app-item></app-item>
181+
<app-customer [customer]="customer"></app-customer>
179182
</ng-container>
180183
```
181184

0 commit comments

Comments
 (0)