JSFiddle - React, Tailwind, and code Playground

by Željko Szep

HTML

<div data-ng-app="TestModule">
    <div data-ng-controller="TestController">
         <h3>Test Select</h3>
Current Value: {{ ourData._currval}}
        <br>
        <select ng-init="ourData._currVal = {Value: ourData.CurrentSelected}" 
            
            
        ng-model="ourData._currval" ng-options="oneItem.Value as oneItem.Disp
        for oneItem in ourData.StuffForDropDown"></select>

    </div>
</div>

JavaScript

// Code goes here

(function () {
    "use strict";

    var smallData = {
        StuffForDropDown: [{
            Disp: "01-Prospect",
            Value: 5
        }, {
            Disp: "02-Constituet Issue",
            Value: 10
        }],
        CurrentSelected: "10"
        
    };

    var myModule = angular.module("TestModule", []);

    myModule.controller("TestController", ["$scope",

    function ($scope) {
        $scope.ourData = smallData;
    }]);

})();