Answer the question
In order to leave comments, you need to log in
How to get date from child component Date Time Picker and put into input of angular parent component?
Good day.
You need to pick up the selected date in the Bootstrap DateTimePicker calendar and paste it into input. Sounds simple, but the difficulty is that the input calendar is a different component.
There is a parent component "date.component" and a child "dl-date-time-picker"
date.component
<input
type="text"
autocomplete="off"
name="DateTo"
[textMask]="{mask: maskDateTime}"
/>
<dl-date-time-picker
startView="year"
maxView="year"
minView="minute"
minuteStep="5"
[(ngModel)]="selectFilter"
>
</dl-date-time-picker>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question