Closed Arnpd closed 7 years ago
Requirement is not clear. Please be more specific
Thank you for touch. This is my code.
<input [(ngModel)]="startDate" ng2-datetime-picker/>
<span class="material-icons" ng2-datetime-picker>date_range</span>
When I select the date on Input, the selected date would be shown in the Input. But if I select the date by Span/Button, how can I get the selected date? Thank you.
Please take a look at this example from README.md https://rawgit.com/ng2-ui/ng2-datetime-picker/master/app/index.html#/component-test
Thank you. It was solved. Legend.
https://rawgit.com/ng2-ui/ng2-datetime-picker/master/app/index.html#/directive-test
This works fine. The datepicker is shown when I click span icon. But how can I get the chosen date information?
<span class="material-icons" ng2-datetime-picker>date_range</span>