I am currently utilizing meteor and attempting to implement the basic example provided on the ng-tables site. However, I am experiencing an issue where only the filters and sort boxes are displayed, but not the data itself.
<body ng-app="myApp">
<h1>#best programmer</h1>
<p>interns rock!</p>
<div ng-controller="tableControl">
<table ng-table="vm.tableParams" class="table" show-filter="true">
<tr ng-repeat="user in $data">
<td title="'Name'" filter="{ name: 'text'}" sortable="'name'">
{{user.name}}</td>
<td title="'Age'" filter="{ age: 'number'}" sortable="'age'">
{{user.age}}</td>
</tr>
</table>
</div>
</body>
<link rel="stylesheet" href="https://cdn.rawgit.com/esvit/ng-table/v1.0.0/dist/ng-table.min.css">
JS code
import angular from 'angular';
import angularMeteor from 'angular-meteor';
import './index.html';
angular.module("myApp", ["ngTable"])
.controller('tableControl', tableControl);
tableControl.$inject = ["NgTableParams"];
function tableControl (NgTableParams) {
var self = this;
var data = [{name: "Moroni", age: 50},{name: "Moroni", age: 50},{name: "Moroni", age: 50},{name: "Moroni", age: 50} /*,*/];
self.tableParams = new NgTableParams({
page: 1, // show first page
count: 10 // count per page
}, { dataset: data});
}