Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

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?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.