-1

I'm using the ng-select component for my angular 5 app. ng-select component I want to change the view component. In multiple select, I want to print the number of components rather than listing the ones selected.

grizzthedj
  • 7,131
  • 16
  • 42
  • 62
Siddhant Sorann
  • 313
  • 3
  • 15

1 Answers1

0

From the examples :

<ng-select
        [items]="people$1 | async"
        [multiple]="true"
        [closeOnSelect]="false"
        bindLabel="name"
        placeholder="Select people"
        [(ngModel)]="selectedPeople1">
</ng-select>

<p>Number of selected persons : {{selectedPeople1.length}}</p>