/** Angular Imports */ import { Injectable } from '@angular/core' ; import { Resolve , ActivatedRouteSnapshot } from '@angular/router' ; /** rxjs Imports */ import { Observable } from 'rxjs' ; /** Custom Services */ import { SavingsService } from '../savings.service' ; /**
 * Saving Accounts Datatables data resolver.
 */ @ Injectable ( ) export class SavingsDatatablesResolver implements Resolve < Object > { param { SavingsService } SavingsService constructor ( private savingsService ) { } returns { Observable < any > } resolve ( ) { return this . savingsService . getSavingsDatatables ( ) ; } }