Open abhiyg opened 6 years ago
I have bound the date picker as follows: HTML: <date-picker [(ngModel)]="data.myDate" [showClearButton]="false" format="L" ngDefaultControl>
<button (click)="changeDate()"> TS: onInit() { this.data.myDate='01/01/201701'; } changeDate() { this.data.myDate=null; }
So on when the view loads, the data on date picker is '01/01/2017' , but on click of changeDate function, the view doesn't get updated.
I have bound the date picker as follows: HTML: <date-picker [(ngModel)]="data.myDate" [showClearButton]="false" format="L" ngDefaultControl>
<button (click)="changeDate()"> TS: onInit() { this.data.myDate='01/01/201701'; } changeDate() { this.data.myDate=null; }
So on when the view loads, the data on date picker is '01/01/2017' , but on click of changeDate function, the view doesn't get updated.