Search Posts

Category: ngtable

Angular ngtable not displaying data correctly

I have an ngTable that is loaded with data that proceeds from a “Get” call to a webapi. Then I reload the table, but the data it is not being displayed. This is the *.js file rdapp.controller(‘scoringTableCtrl’, [ ‘$location’,’$scope’, ‘$http’, ‘ngTableParams’,’$filter’, function($location, $scope, $http, ngTableParams, $filter ){ $scope.teamList = []; $http({ method: ‘GET’, url: ‘http://localhost:34592/api/scoringTable’, headers: { ‘Content-Type’: ‘application/x-www-form-urlencoded; charset=UTF-8’ } }).then(function (success) { $scope.teamList =; addFieldsForSorting(); $scope.dataTable.reload(); }, function (error) { console.log(error); }); […]