JSFiddle - React, Tailwind, and code Playground

by Felix Schoeler

HTML

<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.4/angular.min.js"></script>
<body ng-app>
    <div ng-init="
    $scope.items = [
        { id: 1, name: 'Foo' },
        { id: 2, name: 'Bar' }
    ];

    $scope.selectedItem = null;
">
        <select ng-model="selectedItem" ng-options="item as item.name for item in items"></select>{{selectedItem | json}}</div>
</body>