Selected Value For Angular Select Not Be Set On Page Refresh
The selected value of my angularjs select is not being set on page refresh. It is set if I navigate to a different view and then navigate back again. The model for the select is s
Solution 1:
I edited the answer after I looked at what you were doing.
The ng-options attribute has a track by expression to do just what you're talking about:
ng-options="opt as opt.Value for opt in question.options track by opt.id"
See the updated fiddle: http://jsfiddle.net/CkLEu/6/
Post a Comment for "Selected Value For Angular Select Not Be Set On Page Refresh"