Pick a time of day. Two-way bind the current Date via [(selectedTime)]; only the hour/minute components are relevant to the picker.
<bs-timepicker [(selectedTime)]="selectedTime"></bs-timepicker>
import { Component, signal } from '@angular/core';
import { BsTimepickerComponent } from '@mintplayer/ng-bootstrap/timepicker';
@Component({
selector: 'my-timepicker-demo',
templateUrl: './my-timepicker-demo.component.html',
imports: [BsTimepickerComponent],
})
export class MyTimepickerDemoComponent {
protected readonly selectedTime = signal<Date | null>(new Date());
}
Template-driven [(ngModel)] and reactive [formControl] both bind through the component's ControlValueAccessor: the value, the disabled state, and touched when focus leaves.
"2026-11-21T19:27:44.039Z""2026-11-21T19:27:44.039Z"
<!-- template-driven (FormsModule) -->
<bs-timepicker [(ngModel)]="value"></bs-timepicker>
<!-- reactive (ReactiveFormsModule): control = new FormControl(...) -->
<bs-timepicker [formControl]="control"></bs-timepicker>