ng2-bootstrap-base-modified
Version:
Native Angular Bootstrap Components Typeahead modified
26 lines (20 loc) • 498 B
text/typescript
import { Component } from '@angular/core';
({
selector: 'demo-timepicker-dynamic',
templateUrl: './dynamic.html'
})
export class DemoTimepickerDynamicComponent {
public mytime: Date = new Date();
public update(): void {
let d = new Date();
d.setHours(14);
d.setMinutes(0);
this.mytime = d;
}
public changed(): void {
console.log('Time changed to: ' + this.mytime);
}
public clear(): void {
this.mytime = void 0;
}
}