I feel like this scenario should be in the Angular 2 docs, but I can\'t find it anywhere.
Here\'s the scenario
You can achieve with following way
this.projectService.create(project) .subscribe( result => { console.log(result); }, error => { console.log(error); this.errors = error } ); } if (!this.errors) { //route to new page }