UNPKG

@nbxx/nb-input

Version:
24 lines 688 B
import { Component, Input } from "@angular/core"; export class NbinputNowComponent { constructor() { this.format = 'yyyy-MM-dd HH:mm:ss'; this.date = new Date(); setInterval(() => { this.date = new Date(); }, 1000); } } NbinputNowComponent.decorators = [ { type: Component, args: [{ selector: 'nbinput-now', template: ` <span >{{date | date: format}}</span> ` },] }, ]; /** @nocollapse */ NbinputNowComponent.ctorParameters = () => []; NbinputNowComponent.propDecorators = { format: [{ type: Input }] }; //# sourceMappingURL=nbinput-now.component.js.map