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.
Asked
Active
Viewed 283 times
1 Answers
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>
-
I want to print the length inside the ng-select component's view – Siddhant Sorann Mar 15 '18 at 09:12
-
You are supposed to use a library, not change it. If you want to change it, then you must create your own library. – Mar 15 '18 at 09:13