JSFiddle - React, Tailwind, and code Playground

by Guddu Kumar

HTML

<div ng-app='myApp' ng-controller='ctrl'>
    <table>
        <tbody ng-repeat="obj in rows">
            <tr ng-repeat="e in obj.row">
                <td>{{e}}</td>
            </tr>
            <tr>
                <td colspan="4">{{obj.description}}</td>
            <tr>
        </tbody>
    </table>
</div>

JavaScript

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

function ctrl($scope) {
    $scope.rows = [{
        row: ["a1", "a2"],
        description: "row1"
    }, {
        row: [
            "b1", "b2"],
        description: "row2"
    }];
}