core.js:6014 ERROR TypeError: Cannot read property 'ordering' of null
core.js:6014 ERROR TypeError: Cannot read property 'ordering' of null

facing issues in angular project when response of service is blank
{recordsFiltered: 0, data: [], draw: 0, recordsTotal: 0}
data: []
draw: 0
recordsFiltered: 0
recordsTotal: 0
This discussion has been closed.
Answers
It's working here as expected, using Mockjax to respond to the Ajax request. One issue may be your
drawis at0, this should be the same the number in the request - with the first being1- so0is suspicious.We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin