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,21 @@
import { Component } from '@angular/core';
import { DEFAULT_TIMER } from './data';
import { TimerComponent } from './timer.component';
@Component({
selector: 'timer-container',
standalone: true,
imports: [TimerComponent],
template: `
<div class="flex gap-2">
Timer container:
<p class="italic">(timer is {{ timer }}s)</p>
</div>
<timer />
`,
host: {
class: 'border rounded-md flex p-4 gap-10',
},
})
export class TimerContainerComponent {
timer = DEFAULT_TIMER;
}