feat(injectionToken): create new challenge on injectionToken

This commit is contained in:
thomas
2023-10-18 17:00:04 +02:00
parent 9aa77fbdb2
commit 21b0c9414d
27 changed files with 385 additions and 7 deletions

View File

@@ -0,0 +1,13 @@
import { Component } from '@angular/core';
import { toSignal } from '@angular/core/rxjs-interop';
import { interval } from 'rxjs';
import { DEFAULT_TIMER } from './data';
@Component({
selector: 'timer',
standalone: true,
template: ` Timer running {{ timer() }} `,
})
export class TimerComponent {
timer = toSignal(interval(DEFAULT_TIMER));
}