@c8y/apps
Version:
Cumulocity IoT applications
16 lines (13 loc) • 402 B
text/typescript
import { Component } from '@angular/core';
import { Observable, timer } from 'rxjs';
import { map } from 'rxjs/operators';
({
selector: 'app-time-navigator-node',
templateUrl: './time-navigator-node.component.html'
})
export class TimeNavigatorNodeComponent {
currentTime$: Observable<Date>;
constructor() {
this.currentTime$ = timer(0, 1000).pipe(map(() => new Date()));
}
}