Reputation: 9986
How can i return the total of all data .?(length of data which is shown in ngTable)
<pre>Total DATA: ...??</pre>
Upvotes: 2
Views: 1483
Reputation: 136134
For getting the current length of the data you need to put data in some scope variable so that it would easily accessible on HTML, currently you have stored data in var data
so you need to do $scope.data = data
& on UI you need to use interpolation directive to gets its length
<pre>Total DATA: ...{{data.length}}</pre>
Upvotes: 1