Skip to content

Commit

Permalink
docs(angular): update rerender api
Browse files Browse the repository at this point in the history
  • Loading branch information
dzonatan authored Jul 18, 2023
1 parent 1828c44 commit acb919d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/angular-testing-library/api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,9 @@ debug()

### `rerender`

Create and render a new instance of the component. Input properties that are not
defined are cleared. To keep them use [change](#change).
Changes the input properties of the existing component instance by following
Angular component lifecycle events (i.e. `ngOnChanges` is called). Input
properties that are not defined are cleared.

```typescript
const {rerender} = await render(Counter, {
Expand Down

0 comments on commit acb919d

Please sign in to comment.