/** Angular Imports */ import { Injectable } from '@angular/core' ; import { Resolve , ActivatedRouteSnapshot } from '@angular/router' ; /** rxjs Imports */ import { Observable } from 'rxjs' ; /** Custom Services */ import { RecurringDepositsService } from '../recurring-deposits.service' ; /**
 * Savings Account Template resolver.
 */ @ Injectable ( ) export class RecurringDepositsAccountTemplateResolver implements Resolve < Object > { param { recurringDepositsService } RecurringDepositsService constructor ( private recurringDepositsService ) { } param { ActivatedRouteSnapshot } route returns { Observable < any > } resolve ( route ) { const clientId = route . parent . parent . paramMap . get ( 'clientId' ) ; return this . recurringDepositsService . getRecurringDepositsAccountTemplate ( clientId ) ; } }