Closed HuaJiuZ closed 2 years ago
<Modal [(ngModel)]="isBusinessHours" [popup]="true" [animationType]="'slide-up'" (onClose)="onCloseBusinessHours()"> <PickerView [data]="startSeasons" [cols]="1" [cascade]="true" [(ngModel)]="startTime" (ngModelChange)="onChangeStart($event)"> startSeasons:动态从服务器获取数据 startTime:设置初始值 (不生效)
You can use it like this to avoid error
<PickerView *ngIf="startSeasons && startSeasons.length >0" [data]="startSeasons" [cols]="1" [cascade]="true" [(ngModel)]="startTime" (ngModelChange)="onChangeStart($event)">
https://github.com/NG-ZORRO/ng-zorro-antd-mobile/pull/718
<Modal [(ngModel)]="isBusinessHours" [popup]="true" [animationType]="'slide-up'" (onClose)="onCloseBusinessHours()">
<PickerView [data]="startSeasons" [cols]="1" [cascade]="true" [(ngModel)]="startTime" (ngModelChange)="onChangeStart($event)"> startSeasons:动态从服务器获取数据 startTime:设置初始值 (不生效)