Skip to content

Commit

Permalink
fix: typos (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
swami-sanapathi committed Dec 11, 2023
1 parent f2fdc7b commit 039eefb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 @@ -197,7 +197,7 @@ Or you can pass `initialValue` to `computedFrom` in the third argument `options`
```ts
const combined = computedFrom(
[page$, filters$],
swithMap(([page, filters]) => this.dataService.getArrInfo$(page, filters)),
switchMap(([page, filters]) => this.dataService.getArrInfo$(page, filters)),
{ initialValue: [] as Info[] }, // define the initial value of resulting signal
); // inferred ad Signal<Info[]>
```
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/utilities/Signals/connect.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class AppComponent implements OnDestroy {

pageNumber = signal(1);

ngOninit() {
ngOnInit() {
connect(this.pageNumber, this.dataService.pageNumber$, this.injector);

// or
Expand Down

0 comments on commit 039eefb

Please sign in to comment.