JSFiddle - React, Tailwind, and code Playground

by Manjula Dhamodharan

HTML

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.js"></script>
<html  ng-app="myFirst">
<body>
<div ng-controller="cont">
<table>
<thead>
<th>Name</th>
<th>Age</th>
<th>Postions</th>
</thead>
<tbody>
<tr ng-repeat="x in employees">
<td>{{employees.name}}</td>
<td>{{employees.age}}</td>
<td>{{employees.position}}</td>
</tr>
</tbody>
</table>

</div>

</body>
</html>

JavaScript

var myModule = angular.module("myFirst",[]);

myModule.controller("cont", function($scope){
$scope.employees = [
{name: "Manju", age :"23", position:"2"},
{name: "SivaSankari", age :"22", position:"1"},
{name: "Gayathri", age :"21", position:"1"},
];

});