/** Angular Imports */ import { Injectable } from '@angular/core'; import { Resolve } from '@angular/router'; /** rxjs Imports */ import { Observable } from 'rxjs'; /** Custom Services */ import { OrganizationService } from '../organization.service'; /** * Tellers data resolver. */ @Injectable() export class TellersResolver implements Resolve { /** * @param {OrganizationService} organizationService Organization service. */ constructor(private organizationService: OrganizationService) {} /** * Returns the Tellers data. * @returns {Observable} */ resolve(): Observable { return this.organizationService.getTellers(); } }