JSFiddle - React, Tailwind, and code Playground

by Gerald LeRoy

HTML

<body ng-app="" ng-controller="myController">
    <select 
        ng-model="carSelection"
        ng-options="x.make for x in cars">
     </select>
    
    <script>
        var myController = function ($scope) {

            $scope.cars = [
                {"make": "Nissan","model": "Sentra"}, 
                {"make": "Honda","model": "Prelude"},
                {"make": "Toyota","model": "Prius"}
            ];
    
            $scope.carSelection = $scope.cars[1]; // initializes the drop down menu
        };
    </script>
</body>