Maybe this can has duplicated or maybe there's a way to solve this,
but I couldn't find any way to solve this.
So please don't be angry with my silly question and give me some information or way to solve this.
Please see this fiddle.
Set default value of select box
What I want is, when I get array from http call
,
how to set default value of select box with the value which is not in array.
I've used ng-init
but it didn't work.
I know there are other ways to solve this like using <options>
tag and put first value of option or
using selected
but I want to use ng-options
.
No matter what you give is a link, doc, or something, it'll be great help to me.
I'll wait for your any comments or answers. :)