import { Injectable } from '@angular/core' ; import { ActivatedRouteSnapshot , Resolve , } from '@angular/router' ; import { Observable } from 'rxjs' ; import { DaffProductPageIdResolver } from '../product-page-id/product-page-id.resolver' ; deprecated see DaffProductPageIdResolver @ Injectable ( { providedIn : 'root' , } ) export class DaffProductPageResolver implements Resolve < Observable < boolean > > { constructor ( private productPageIdResolver ) { } resolve ( route ) { return this . productPageIdResolver . resolve ( route ) ; } }