Skip to content

Commit 781c472

Browse files
docs: be more specific about current Angular's rerender behavior
ref #653
1 parent 55b0bda commit 781c472

File tree

1 file changed

+2
-2
lines changed
  • docs/angular-testing-library

1 file changed

+2
-2
lines changed

docs/angular-testing-library/api.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,8 @@ expect(screen.getByTestId('name-value').textContent).toBe('Sarah')
411411

412412
### `rerender`
413413

414-
Re-render the same component with different props. Input properties that are not
415-
defined are cleared. This calls `detectChanges` after the props are updated.
414+
Create and render a new instance of the component.
415+
For updating the existing component use [change](#change).
416416

417417
```typescript
418418
const {rerender} = await render(Counter, {

0 commit comments

Comments
 (0)