Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. $(t).DataTable({
  2. ...
  3. ajax: function(data, callback, settings) {
  4. _this.myService.get().subscribe(response => {
  5. console.log('response', response); //The response data is json
  6. console.log('response', response.length); //results in 10
  7. console.log('is array', Array.isArray(response)); //result is true
  8. callback(response);
  9. })
  10.  
  11. },
  12. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement