+32
@@ -0,0 +1,32 @@
|
||||
/** 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 Savings service.
|
||||
*/
|
||||
constructor(private recurringDepositsService: RecurringDepositsService) { }
|
||||
|
||||
/**
|
||||
* Returns the Shares Account Template.
|
||||
* @param {ActivatedRouteSnapshot} route Route Snapshot
|
||||
* @returns {Observable<any>}
|
||||
*/
|
||||
resolve(route: ActivatedRouteSnapshot): Observable<any> {
|
||||
const clientId = route.parent.parent.paramMap.get('clientId');
|
||||
return this.recurringDepositsService.getRecurringDepositsAccountTemplate(clientId);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user