JSFiddle - React, Tailwind, and code Playground

by razh

HTML

<div ng-app="plunker">
    <div ng-controller="MainCtrl">
        {{ratings}}
        <section ng-repeat="enrollment in enrollments">{{enrollment.name}} -- {{enrollment.id}}
            <select ng-options="rating.value as rating.name for rating in ratings"></select>
        </section>
    </div>    
</div>

JavaScript

var app = angular.module('plunker', []);

app.controller('MainCtrl', function ($scope) {
    $scope.ratings = [
        {value: 1, name: "ok"},
        {value: 2, name: "good"}
    ];
    $scope.enrollments = [
        {name: "Art History", id: 1},
        {name: "Calculus III", id: 3},
        {name: "English", id: 5}
    ];
});