Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this._dataService.create(newItem)
- .pipe(
- switchMap( id => {
- return this._dataService.getDetails(id);
- })
- )
- .subscribe(result => {
- // Do stuff with result
- },
- error => {
- console.log(error);
- }));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement