Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.service.post(id, data)
- .subscribe(postResponse => {
- this.service.get(postResponse.id)
- .subscribe(getResponse => {
- getResponse.number += 1;
- this.service.put(getResponse.id, getResponse)
- .subscribe(putResponse => {
- this.router.navigate(['/user', `${putResponse.id}`]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment