JSFiddle - React, Tailwind, and code Playground

by R3oLoN

HTML

<div ng-app="app">
    <table >
        <thead>
            <th>id</th>
            <th>descricao</th>
        </thead>
        <tbody>
            <tr >
                <td>{{item.id}}</td>
                <td>{{item.descricao}}</td>
            </tr>
        </tbody>
    </table>
</div>

JavaScript

angular.module('app', [])
    .controller('TesteCtrl', TesteCtrl);

function TesteCtrl() {
    var viewModel = this;

    viewModel.items = [];

    viewModel.items.push({
        id: 1,
        descricao: 'teste'
    });

}