Closed robert-king closed 5 years ago
ngx-timepicker-field
doesn't have any outputs
@robert-king ngx-timepicker-field
implement the ControlValueAccessor
, so you can use reactive-form binding it
thanks after some experimenting I got it working, it just means formControl is an input as usual:
ctrl = new FormControl();
and
<div>
<ngx-timepicker-field
[formControl]="ctrl"
[format]="24"
[defaultTime]="'12:00'"></ngx-timepicker-field>
</div>
<div>
{{ctrl.value}}
</div>
if anyone' interested it's explained at the bottom of this tutorial:
<ngx-jquery-slider [formControl]="ctrl"></ngx-jquery-slider>
I can use timeSet with ngx-material-timepicker
but it doesn't work with ngx-timepicker-field
Not sure how it's supposed to be setup after looking through https://agranom.github.io/ngx-material-timepicker/