ngx-bootstrap - Timepicker popup for input

Amila Iddamalgoda picture Amila Iddamalgoda · Aug 28, 2018 · Viewed 8.2k times · Source

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>

Answer

Sumit M picture Sumit M · Aug 28, 2018

You can use popover to achieve this.

I have created a example for this - https://stackblitz.com/edit/so-angular-ngx-timepicker