Skip to content

Commit 60684b2

Browse files
docs(query): Fix docs for RxJS Operators (#182)
1 parent fb04849 commit 60684b2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -394,27 +394,27 @@ export class TodosPageComponent {
394394

395395
### filterSuccessResult
396396

397-
The `filterSuccess` operator is useful when you want to filter only successful results:
397+
The `filterSuccessResult` operator is useful when you want to filter only successful results:
398398

399-
`todosService.getTodos().result$.pipe(filterSuccess())`
399+
`todosService.getTodos().result$.pipe(filterSuccessResult())`
400400

401401
### filterErrorResult
402402

403-
The `filterError` operator is useful when you want to filter only error results:
403+
The `filterErrorResult` operator is useful when you want to filter only error results:
404404

405-
`todosService.getTodos().result$.pipe(filterError())`
405+
`todosService.getTodos().result$.pipe(filterErrorResult())`
406406

407407
### tapSuccessResult
408408

409-
The `tapSuccess` operator is useful when you want to run a side effect only when the result is successful:
409+
The `tapSuccessResult` operator is useful when you want to run a side effect only when the result is successful:
410410

411-
`todosService.getTodos().result$.pipe(tapSuccess(console.log))`
411+
`todosService.getTodos().result$.pipe(tapSuccessResult(console.log))`
412412

413413
### tapErrorResult
414414

415-
The `tapErrorResult` operator is useful when you want to run a side effect only when the result is successful:
415+
The `tapErrorResult` operator is useful when you want to run a side effect only when the result is erroring:
416416

417-
`todosService.getTodos().result$.pipe(tapError(console.log))`
417+
`todosService.getTodos().result$.pipe(tapErrorResult(console.log))`
418418

419419
### mapResultData
420420

0 commit comments

Comments
 (0)