/** Angular Imports */ import { Injectable } from '@angular/core' ; import { Resolve , ActivatedRouteSnapshot } from '@angular/router' ; /** rxjs Imports */ import { Observable } from 'rxjs' ; /** Custom Services */ import { FixedDepositsService } from '../fixed-deposits.service' ; /**
 * Fixed Deposits Account Transaction data resolver.
 */ @ Injectable ( ) export class FixedDepositsAccountTransactionResolver implements Resolve < Object > { param { FixedDepositsService } fixedDepositsService constructor ( private fixedDepositsService ) { } param { ActivatedRouteSnapshot } route returns { Observable < any > } resolve ( route ) { const fixedDepositAccountId = route . parent . paramMap . get ( 'fixedDepositAccountId' ) ; const transactionId = route . paramMap . get ( 'id' ) ; return this . fixedDepositsService . getFixedDepositsAccountTransaction ( fixedDepositAccountId , transactionId ) ; } }