Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为我的 angular 5 应用程序使用 ng-select 组件。ng-select 组件 我想更改视图组件。在多选中,我想打印组件的数量而不是列出选定的组件。
从例子:
<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>