Incorporating Ajax syntax for datatables and angularjs has been my current endeavor.
Encountering an invalid JSON response with the following:
self.dtOptions = DTOptionsBuilder.fromSource([{
"id": 860,
"firstName": "Superman",
"lastName": "Yoda"
}])
However, there is no issue with the JSON response when using this:
self.dtOptions = DTOptionsBuilder.fromSource('https://l-lin.github.io/angular-datatables/data.json')
.withPaginationType('full_numbers');
The inconsistency is perplexing. The first single item in JSON format shows as valid upon checking at http://jsonlint.com/.
For reference, view the original example at
Appreciate any insight!