/** Angular Imports */ import { Injectable } from '@angular/core' ; import { Resolve , ActivatedRouteSnapshot } from '@angular/router' ; /** rxjs Imports */ import { Observable } from 'rxjs' ; /** Custom Services */ import { OrganizationService } from 'app/organization/organization.service' ; /**
 * Cashier Template resolver.
 */ @ Injectable ( ) export class EditCashierResolver implements Resolve < Object > { param { OrganizationService } organizationService constructor ( private organizationService ) { } returns { Observable < any > } resolve ( route ) { const tellerId = route . parent . parent . paramMap . get ( 'id' ) ; return this . organizationService . getCashierTemplate ( tellerId ) ; } }