Skip to content

Commit 50ad2d2

Browse files
angular: add deferBlockBehavior to the docs (#1359)
1 parent c1855e6 commit 50ad2d2

File tree

1 file changed

+36
-0
lines changed
  • docs/angular-testing-library

1 file changed

+36
-0
lines changed

Diff for: docs/angular-testing-library/api.mdx

+36
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,42 @@ await render(AppComponent, {
150150
})
151151
```
152152

153+
### `deferBlockBehavior`
154+
155+
Set the defer blocks behavior.
156+
157+
For more info see the
158+
[Angular docs](https://angular.io/api/core/testing/DeferBlockBehavior)
159+
160+
**default** : `undefined` (uses the Angular default, which is
161+
`DeferBlockBehavior.Manual`)
162+
163+
**example**:
164+
165+
```typescript
166+
await render(AppComponent, {
167+
deferBlockBehavior: DeferBlockBehavior.Playthrough,
168+
})
169+
```
170+
171+
### `deferBlockStates`
172+
173+
Set the initial state of a deferrable blocks in a component.
174+
175+
For more info see the
176+
[Angular docs](https://angular.io/api/core/testing/DeferBlockState)
177+
178+
**default** : `undefined` (uses the Angular default, which is
179+
`DeferBlockState.Placeholder`)
180+
181+
**example**:
182+
183+
```typescript
184+
await render(FixtureComponent, {
185+
deferBlockStates: DeferBlockState.Loading,
186+
})
187+
```
188+
153189
### `componentProviders`
154190

155191
A collection of providers needed to render the component via Dependency

0 commit comments

Comments
 (0)