Skip to content

Commit df1b44e

Browse files
fdonzelloalxhub
authored andcommitted
docs: added missing imports for toSignal and toObservable (angular#52393)
PR Close angular#52393
1 parent bf5bda4 commit df1b44e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

aio/content/guide/rxjs-interop.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ The `toSignal` function creates a signal which tracks the value of an Observable
1616
import {Component} from '@angular/core';
1717
import {AsyncPipe} from '@angular/common';
1818
import {interval} from 'rxjs';
19+
import { toSignal } from '@angular/core/rxjs-interop';
1920

2021
@Component({
2122
standalone: true,
@@ -68,6 +69,7 @@ The `toObservable` utility creates an `Observable` which tracks the value of a s
6869

6970
```ts
7071
import { Component, signal } from '@angular/core';
72+
import { toObservable } from '@angular/core/rxjs-interop';
7173

7274
@Component(...)
7375
export class SearchResults {

0 commit comments

Comments
 (0)