JSFiddle - React, Tailwind, and code Playground
by Varun Krishna P
HTML
<tr>
<th ng-repeat ='item in items.list' >{{items.name}}</th>
</tr>
JavaScript
$scope. items = {
list : [
{id:'010', name;'laptop',costprice:'40,000', {selligprice:'45,000 },
{id:'011', name;'laptop',costprice:'40,000', {selligprice:'45,000 },
{id:'012', name;'laptop',costprice:'40,000', {selligprice:'45,000 },
{id:'013', name;'laptop',costprice:'40,000', {selligprice:'45,000 },
]
}
//I would like to bind the item id, name, cp and sp as table's header