JSFiddle - React, Tailwind, and code Playground

by fwanicka

HTML

<div ng-app="app">
    <div ng-controller="MainCtrl as vm">
        <select ng-model="vm.selectedLevel" ng-options="level for level in vm.levels"></select>
    </div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0/angular.min.js"></script>

JavaScript

angular.module('app', []);
angular.module('app').controller('MainCtrl',
function($scope) {
    var vm=this;
    
    vm.selectedLevel=2;
    vm.levels = [];
    
    window.setTimeout(function(){
        $scope.$apply(function(){
            vm.levels = [1,2,3];
        });
    },0);
});