0

I have select dropdownlist Multiple and assign values from service

service has list of values in array as follows

 {roleid:1,roleName:GM}{roleid:2,roleName:SM}roleid:3,roleName:AM}

I want to assign values to dropdownlist based on the id I get. (I may get more than one role id in the service, so based on role id received from service it should be selected in the dropdown)

enter image description here

Hien Nguyen
  • 24,551
  • 7
  • 52
  • 62
Nishanth
  • 361
  • 1
  • 6
  • 21
  • Please make sure to add a minimal verifiable code snippet for others to take a look and understand your problem. For more details on how to create [mcve] – nircraft Jun 27 '19 at 15:06
  • Hey @nircraft, it appears that OP has been active on StackOverflow for about 5 years, so there’s no need to welcome OP. – Edric Jun 27 '19 at 15:08
  • @Edric, in that case he should not need a reminder on how to add a [mcve] – nircraft Jun 27 '19 at 15:09
  • I think this is what you're looking for. [duplicate](https://stackoverflow.com/questions/35945001/binding-select-element-to-object-in-angular) – caden311 Jun 27 '19 at 20:56

0 Answers0