Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handle ajax error? #8

Open
ibufu opened this issue Jan 18, 2016 · 2 comments
Open

How to handle ajax error? #8

ibufu opened this issue Jan 18, 2016 · 2 comments

Comments

@ibufu
Copy link

ibufu commented Jan 18, 2016

No description provided.

@Discountrobot
Copy link
Contributor

please elaborate.

Since the rest client is simply returning a RxJS observable, you should read up on how the RxJS/subscribe method works.

You simply supply another callback like so:

  myMethod
  .subscribe(
    data => console.log(data),
    err => console.log(err),
    () => console.log('Completed')
  );

@akarabach
Copy link

add responseInterceptor. after use like this return response.catch (()=>{});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants