/** Angular Imports */ import { Injectable } from '@angular/core' ; import { Resolve , ActivatedRouteSnapshot } from '@angular/router' ; /** rxjs Imports */ import { Observable } from 'rxjs' ; /** Custom Services */ import { AccountTransfersService } from '../account-transfers.service' ; /**
 * View Account Transfer data resolver.
 */ @ Injectable ( ) export class ViewAccountTransferResolver implements Resolve < Object > { param { AccountTransfersService } AccountTransfersService constructor ( private accountTransfersService ) { } returns { Observable < any > } resolve ( route ) { const transferId = route . paramMap . get ( 'transferid' ) ; return this . accountTransfersService . getViewAccountTransferDetails ( transferId ) ; } }