html中
<nz-select nzMode="tags" nzi-select-tags [nziSelect]="NzSelect" #NzSelect nzPlaceHolder="默认显示" [(ngModel)]="cycle" (ngModelChange)="totalblur()">
<nz-option [nzLabel]="'数据1" [nzValue]="'1'"></nz-option>
<nz-option [nzLabel]="'数据2'" [nzValue]="'2'"></nz-option>
<nz-option [nzLabel]="'数据三'" [nzValue]="'3'"></nz-option>
</nz-select>
此处ngmodel传入的应该是nzvalue的三个值,为数组。
js中
public cycle:any=[];
console.log(this.cycle);
即可输出。