Skip to content

Commit

Permalink
docs: fix computedFrom example with injector (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
gianmarcogiummarra committed Nov 19, 2023
1 parent ede1c48 commit 2b6b5b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/content/docs/utilities/Signals/computed-from.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export class MyComponent {
switchMap(([page, filters]) => this.dataService.getUserData(this.userId, page, filters)),
startWith([] as string[]) // change the initial value
),
this.injector // 👈 pass the injector as the third argument
{ injector: this.injector } // 👈 pass the injector in the options object
);
}
}
Expand Down

0 comments on commit 2b6b5b9

Please sign in to comment.