can we use a variable which is having objects to fetch data in datatable instead of ajax url?

can we use a variable which is having objects to fetch data in datatable instead of ajax url?

pvrncsepvrncse Posts: 1Questions: 1Answers: 0

I am using data table in angular application, can it be possible to get the objects from the variable, which is rendering the table data instead of ajax call (which is calling the file)?

Answers

  • allanallan Posts: 61,879Questions: 1Answers: 10,138 Site admin

    Sure - use ajax as a function and have it get the data from wherever the data is and pass it through to the success callback.

    Allan

This discussion has been closed.