1. 程式人生 > >angular-------------模板資料顯示篇

angular-------------模板資料顯示篇

<div class="pointlist point" id="up{{i}}"(click)="onClick(i)" *ngFor="let list of balckSport; let i=index"
     [class.start]="i==0" [class.end]="i==balckSport.length-1">

    <nz-alert style="margin-left: 15px;margin-top: -70px;" nzType="error"
              nzMessage="{{list.counts}}次" *ngIf="list.counts!=0"
></nz-alert> <i></i><span>{{list.name}}</span> </div>