Hi
In the select example in documentation we are able to set default value by index, something like $scope.myselect = data[0],
but what if I need to set value into dropdown as object, something like $scope.myselect = {'value':aa, 'label':bb}, and I know that this object is present inside data?
Looks like this is impossible, because there are no link to the parent object, am I right?
Could someone look on this jsfidle example, and tell me if my idea is correct:
http://jsfiddle.net/dmitrysh/S58HL/, and maybe you know how to workaround this.
For now I have to loop by entire data array and find proper object inside data, and then set it to model, this is look ugly.
Second question:
is there any way to restore data inside dropdown if object is used? for example if you load form from DB? This works perfectly for textboxes but not for the dropdowns