Upon observing various instances of ng-select, I've noticed that it often involves wrapping a ng-template, as exemplified below:
<ng-select
[items]="cities"
[(ngModel)]="selectedCity"
bindLabel="name"
bindValue="name"
>
<ng-template
ng-option-tmp
let-item="item"
let-item$="item$"
let-index="index"
>
{{ item.name }}
</ng-template>
</ng-select>
I conducted an experiment by removing the ng-template but found that the result remained unchanged. Can someone explain the purpose of ng-template in this particular scenario? Thanks!