JSFiddle - React, Tailwind, and code Playground

by mrajcok

HTML

<div ng-app="app" ng-controller="Ctrl">
    <table>
        <th>label</th>
        <th>value</th>
        <tr ng-repeat="field in fields">
            <td>{{field.label}}:</td>
            <td><input type="text" ng-model="field.value"></td>
        </tr>
    </table>
    {{fields}}
</div>

JavaScript

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

app.controller('Ctrl', function($scope) {
    $scope.fields = [
        {label: "foo", value: "foov"},
        {label: "bar", value: "barv"},
        {label: "baz", value: "bazv"}
    ];
});