SHARE
TWEET

Untitled

a guest Jun 19th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. this._dataService.create(newItem)
  2.             .pipe(
  3.                 switchMap( id => {
  4.                     return this._dataService.getDetails(id);
  5.  
  6.                 })
  7.              )
  8.             .subscribe(result => {
  9.                 // Do stuff with result
  10.                 },
  11.                 error => {
  12.                     console.log(error);
  13.                 }));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top