paper-datatable
paper-datatable copied to clipboard
ajax fail
http://david-mulder.github.io/paper-datatable/components/paper-datatable/demo/paper-datatable-card/
When data/request is ok, resolve(data) renders the table, but when there is a problem with request what should reject() do? I'm using $.Deferred and returning the error string from the error method does nothing. Can we stop fetching and handle error message?
$.ajax(...).then(function(data){return data.mydata}, function(err){return err.text})