JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-app="DemoApp" ng-controller="DemoController">
<select data-ng-model="printValue">
<option value="">Print options</option>
<option ng-repeat="key in notSorted(numArr)" ng-init="value = numArr[key]" value="{{key}}">{{value}}</option>
</select>
{{printValue}}
</div>
JavaScript
var DemoApp = angular.module("DemoApp", []);
DemoApp.controller("DemoController",
function DemoController($scope) {
$scope.numArr = {};
for (var x = 1; x <= 15; x++) {
x = parseInt(x);
$scope.numArr[x] = x;
}
$scope.notSorted = function (obj) {
if (!obj) {
return [];
}
return Object.keys(obj);
}
});