JSFiddle - React, Tailwind, and code Playground
by klierik
HTML
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<div ng-app="myApp">
<table class="table table-bordered" ng-controller="BuildTableCtrl">
<tr ng-repeat="index in pammIndexList">
<th>{{index.name}}</td>
<td>
<div ng-repeat="pamm in index.pamms">
<a href="{{pamm.url}}">{{pamm.name}} ({{pamm.id}})</a>
</div>
</td>
</tr>
</table>
</div>
JavaScript
'use strict';
var myApp = angular.module('myApp', []);
'use strict';
/* Controllers */
myApp.controller('BuildTableCtrl', function($scope){
$scope.pammIndexList = [
{
"name":"Platinum",
"pamms": [
{
"pamm": {
"name": "veronika"
,"id": "7165"
,"url": "https://fx-trend.com/pamm/7165/"
}
}
,{
"pamm": {
"name": "sven"
,"id": "7031"
,"url": "https://fx-trend.com/pamm/7031/"
}
}
,{
"pamm": {
"name": "Avas"
,"id": "5995"
,"url": "https://fx-trend.com/pamm/5995/"
}
}
]
}
,{"name":"Gold"}
,{"name":"Balance"}
,{"name":"Aggressive"}
];
});