San

San

  • 885
  • 804
  • 314.4k

How to break the display value

Jul 6 2018 11:53 AM
Please check the below code :
).pipe(
map(list => list.map(e => ({
value: e.AccountID,
display: `${e.accountName}${e.primaryPhone } (${e.emailAddress})`,
details: {}
}))));
 
We need to display the output like
AccountName
PrimaryPhone EmailAddress 
 
Current display in autocomplete search like  
AccountName PrimaryPhone EmailAddress
 Need to break after AccountName 

Answers (1)