Timepicker

Pick a time of day. Two-way bind the current Date via [(selectedTime)]; only the hour/minute components are relevant to the picker.

Basic usage

Selected time
19:27
  
    
      
        <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());
        
    
      
        }
        
    

Angular forms

Template-driven [(ngModel)] and reactive [formControl] both bind through the component's ControlValueAccessor: the value, the disabled state, and touched when focus leaves.

Template-driven

Value: "2026-11-21T19:27:44.039Z"
dirty: false · touched: false · disabled: false

Reactive

Value: "2026-11-21T19:27:44.039Z"
dirty: false · touched: false · disabled: false
  
    
      
        <!-- template-driven (FormsModule) -->
        
    
      
        <bs-timepicker [(ngModel)]="value"></bs-timepicker>
        
    
      
        
        
    
      
        <!-- reactive (ReactiveFormsModule): control = new FormControl(...) -->
        
    
      
        <bs-timepicker [formControl]="control"></bs-timepicker>