// newscenario.component.ts selectedProcessList: any = []; processname: any = []; onProcessSelection() { this.selectedProcessList.map(selectingProcess => { this.processname = this.processname.concat(selectingProcess.name); });
<p-multiSelect [showHeader]="false" defaultLabel="Select Process" [options]="processList" optionLabel="name" [(ngModel)]="selectedProcessList" optionLabel="name" (onChange)="onProcessSelection($event)"></p-multiSelect>
Result showing in UI is p2,p2,p1
2.1m questions
2.1m answers
60 comments
56.9k users