mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs: add toSignal import inside the demo example (#56804)
PR Close #56804
This commit is contained in:
parent
a1f6ff310e
commit
838c15e9fe
1 changed files with 1 additions and 0 deletions
|
|
@ -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() }}`,
|
||||
|
|
|
|||
Loading…
Reference in a new issue