I\'m trying to use ng-options with a to bind a numeric integer value to a list of corresponding options. In my controller, I have something like
Make id property in unitsOptions as number
self.unitsOptions = Object.keys(unitOptionsFromServer).map(function (key) { return { id: +key, text: unitOptionsFromServer[key] }; });
http://jsfiddle.net/htwc10nx/