最近,我的团队已将我们的应用程序从Angular / core cli 4.3.2迁移到6.1.10。标签没有出现在浏览器上。代码如下
<canvas *ngIf="selectedSWP" class="donut" baseChart [data]="[ device[selectedSWP], (100 - device[selectedSWP]).toFixed(2) ]"
[colors]="doughnutChartColor" [labels]="doughnutChartLabels" [chartType]="doughnutChartType" [options]="doughnutChartOptions"
(chartHover)="chartHovered($event)" (chartClick)="chartClicked($event)"></canvas>