ng2-select2-demo
ng2-select2-demo copied to clipboard
how to set the default value
I want to show the first value of my list instead of placeholder
@naveedshahji were you able to do it?
This is the way to do it @naveedshahji
select2.currentSelection = 'id';
select2.startingOptions = [{
id: 'id',
text: 'currentSelection'
}];