date pickers work
This commit is contained in:
parent
80bc7e8328
commit
c16817317e
2 changed files with 3 additions and 3 deletions
|
@ -6,9 +6,9 @@
|
|||
<h4 class="card-title mb-0">Spend amount and number of purchases by supplier name</h4>
|
||||
</div>
|
||||
<div class="col-sm-5 hidden-sm-down">
|
||||
<input type="date" (ngModel)="bubbleChartBegin" (ngModelChange)="bubbleChartUpdate()" (change)="bubbleChartUpdate()">
|
||||
<input type="date" [ngModel]="bubbleChartBegin" (ngModelChange)="bubbleChartUpdate()" (change)="bubbleChartUpdate()">
|
||||
<!-- THESE INPUT BOXES DO NOT WORK. Their value remains the client machine's date/time despite changing. -->
|
||||
<input type="date" (ngModel)="bubbleChartEnd" (ngModelChange)="bubbleChartUpdate()" (change)="bubbleChartUpdate()">
|
||||
<input type="date" [ngModel]="bubbleChartEnd" (ngModelChange)="bubbleChartUpdate()" (change)="bubbleChartUpdate()">
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
|
|
|
@ -185,7 +185,7 @@ export class MoreStuffComponent implements OnInit {
|
|||
}
|
||||
|
||||
bubbleChartUpdate() {
|
||||
console.log("start_range input box: " + this.bubbleChartBegin.date);
|
||||
console.log("start_range input box: " + this.bubbleChartBegin);
|
||||
console.log("start_range : " + new Date(this.bubbleChartBegin));
|
||||
console.log("end_range input box: " + this.bubbleChartEnd);
|
||||
console.log("end_range : " + new Date(this.bubbleChartEnd));
|
||||
|
|
Reference in a new issue