How to handle error in a Resolver
Here is an example of one of my resolvers with error handling, using the technique that Gunter suggests: import { Injectable } from ‘@angular/core’; import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot, Router } from ‘@angular/router’; import { Observable } from ‘rxjs/Observable’; import ‘rxjs/add/operator/catch’; import ‘rxjs/add/operator/map’; import ‘rxjs/add/observable/of’; import { IProduct } from ‘./product’; import { ProductService } … Read more