Angular 6-从datetimepicker获取值

时间:2018-09-20 12:58:00

标签: angular bootstrap-4

我在Angular中使用此datetimepicker,选择日期时间后,如何获取该值并将其显示在下面的p元素中?

<dl-date-time-picker minuteStep="15" ></dl-date-time-picker>
<p class="text-secondary"></p>

1 个答案:

答案 0 :(得分:0)

我会尝试(change)事件:

HTML

54

TS

<dl-date-time-picker minuteStep="15" (change)="dateChanged($event)"></dl-date-time-picker>
<p class="text-secondary">{{somethingChanged | json}}</p>