docs: add toSignal import inside the demo example (#56804)

PR Close #56804
This commit is contained in:
Krishna Sahu 2024-07-02 13:55:47 +05:30 committed by Jessica Janiuk
parent a1f6ff310e
commit 838c15e9fe

View file

@ -12,6 +12,7 @@ Use the `toSignal` function to create a signal which tracks the value of an Obse
import { Component } from '@angular/core';
import { AsyncPipe } from '@angular/common';
import { interval } from 'rxjs';
import { toSignal } from '@angular/core/rxjs-interop';
@Component({
template: `{{ counter() }}`,