/** Angular Imports */ import { Injectable } from '@angular/core' ; import { Resolve , ActivatedRouteSnapshot } from '@angular/router' ; /** rxjs Imports */ import { Observable } from 'rxjs' ; /** Custom Services */ import { ReportsService } from '../reports.service' ; /**
 * Reports data resolver.
 */ @ Injectable ( ) export class RunReportResolver implements Resolve < Object > { param { ReportsService } reportsService constructor ( private reportsService ) { } returns { Observable < any > } resolve ( route ) { return this . reportsService . getReportParams ( route . params [ 'name' ] ) ; } }