I am using an angular provider as a data storage for my application. I am using it to load data from the server side. What I am willing to do is to show some data with the help of angular-datatables. I already use angular-datatables to show data from static .json objects which I included to my project directory. I use the fromSource
function to get it like this:
$scope.dtOptions = DTOptionsBuilder.fromSource('webapp/modules/home/controllers/data.json')
My problem is, that I don't want to get data directly from the server with the use of the ajax request. I want to let my dataProvider get the data from the server on his own and the angular-datatables should then access dataProvider to get the data.
Is there a way to tell the angular-datatables to use an angular service (provider) to get the data?