MCPcopy Create free account
hub / github.com/Everoot/everoot.github.io / ngOnInit

Method ngOnInit

src/app/components/clock/clock.ts:18–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 displayTime = signal('');
17
18 ngOnInit() {
19 this.updateTime();
20 this.updateInterval = setInterval(() => {
21 this.updateTime();
22 }, 10000); // Update every 10 seconds
23 }
24
25 ngOnDestroy() {
26 if (this.updateInterval) {

Callers

nothing calls this directly

Calls 1

updateTimeMethod · 0.95

Tested by

no test coverage detected