jai kumar

jai kumar

  • NA
  • 2
  • 554

how to set a item/option dynamically in angular js

Nov 5 2019 9:29 AM
I have a dropdown in my html page and i am using angular js option to get the values from an object. here is my code
 
<select data-ng-mobel"args.employeeid"  data-ng-option="item.employeeid as item.employeename for item in employees">
 
in my typscript file i am checking something and want to select an option from my above dropdownlist dynamically , but not sure how to do it. I am new to angular js.
 
Any help much appreciated. 

Answers (2)