Syntax problems of angualr4 template binding

          <nz-select style="width: 150px;" class="ml10" nzShowSearch nzAllowClear nzPlaceHolder="" [(ngModel)]="selectedValueRent" (ngModelChange)="search(searchApartmentList,$event.split(";"),searchResourceList)" >
            <nz-option nzLabel="{{item.text}}" nzValue="{{item.value}}" *ngFor="let item of filterRentList" (click)="filter("rent_status",item.value)"></nz-option>

clipboard.png

I hope it becomes an empty array [] when it is null, instead of null reporting an error
, what should I write

?
Mar.22,2021

you can do this in the $event.split (';') operation in the search function of ts.

(ngModelChange)="search(searchApartmentList,$event ,searchResourceList)" 

search(apartments,event,resources){
  // event
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e63ea0-45a67.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e63ea0-45a67.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?