/** Angular Imports */ import { Injectable } from '@angular/core'; import { Resolve } from '@angular/router'; /** rxjs Imports */ import { Observable } from 'rxjs'; /** Custom Services */ import { SystemService } from '../system.service'; /** * Reports data resolver. */ @Injectable() export class ReportsResolver implements Resolve { /** * @param {SystemService} systemService System service. */ constructor(private systemService: SystemService) {} /** * Returns the Reports data. * @returns {Observable} */ resolve(): Observable { return this.systemService.getReports(); } }