iron-ajax
iron-ajax copied to clipboard
generaterequest catch() in parent scope has no error info
See this SO question for more info:
https://stackoverflow.com/questions/38018531/retrieving-status-code-from-ironrequest-promise
Particularly the comment to the accepted answer:
This approach works only if the catch handler is in the same scope as the generateRequest() call. What can be done if the request is fired in a method that returns the promise, with a catch handler in a parent scope?
I'll try and make a quick demo...