Is there a way to retrieve the text name of a selected dropdown value using a PrimeNG dropdown?
Incorporating a PrimeNG dropdown:
HTML
<p-dropdown [options]="regionSelectList" [(ngModel)]="reg" [filter]="true" [ngModelOptions]="{standalone: true}"> </p-dropdown>
<button class="btn btn-primary" (click)="addRecipient(reg);">Add</button>
TS
addRecipient(reg: any){
console.log(reg) //This will only return the code, not the text.
}
Any suggestions on how to obtain both the text or label along with the code?