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="
    items = [
        { id: 1, name: 'Foo' },
        { id: 2, name: 'Bar' }
    ];

    selectedItem = items[1+0];
">
        <select 
        ng-model="selectedItem" 
        ng-options="item.name for item in items"></select>{{selectedItem | json}}</div>
</body>