我在Angular中使用此datetimepicker,选择日期时间后,如何获取该值并将其显示在下面的p元素中?
<dl-date-time-picker minuteStep="15" ></dl-date-time-picker>
<p class="text-secondary"></p>
答案 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>