mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-11 05:13:02 -05:00
22 lines
508 B
TypeScript
22 lines
508 B
TypeScript
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;
|
|
}
|