ngx-bootstrap - Timepicker popup for input

Viewed 10718

I'm using the time-picker component from ngx-bootsrap and I want to include the time-picker to an input box as follows. (More in a popup dialog way, which used in date-picker)

enter image description here

Any advice on how to do that , because as per the documentation it always uses the time-picker HTML directive.

eg:- <timepicker [(ngModel)]="mytime"></timepicker>
2 Answers

@aspergillusOryzae: to display time-only format, use value properties instead of [(ngModel)]

<input value="{{ mytime | date: 'HH:mm' }}" [popover]="popTemplate" [outsideClick]="true" placement="bottom" />
Related