Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(t).DataTable({
- ...
- ajax: function(data, callback, settings) {
- _this.myService.get().subscribe(response => {
- console.log('response', response); //The response data is json
- console.log('response', response.length); //results in 10
- console.log('is array', Array.isArray(response)); //result is true
- callback(response);
- })
- },
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement