Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const observable = api.callWithObservable();
- const promise = api.callWithPromise();
- observable.subscribe(
- (result) => { /* on success */ },
- (error) => { /* on error */ }
- );
- promise.then(
- (result) => { /* on success */ },
- (error) => { /* on error */ }
- );
Add Comment
Please, Sign In to add comment