This may not be the most elegant solution, but I found a way to make this work.
First, I updated my input to look like this:
<input [(ngModel)]="SeasonStartDate" #startDate (click)="updateSeasonStartDate(startDate.value)" class="form-control date-picker" id="SeasonStartDate" name="SeasonStartDate" tabindex="5" type="text" autocomplete="off">
Important changes are additions #startDateand(click)="updateSeasonStartDate(startDate.value)"
, , updateSeasonStartDate() . , SeasonStartDate , , , ngOnInit:
$('body').on('change', '#SeasonStartDate', function() {
$('#SeasonStartDate').trigger('click');
});
, , updateSeasonStartDate() SeasonStartDate , . , , , , (change) (click) . , - (change) JQuery Date Picker. , Angular 2, , .
- , , .