28 lines
606 B
TypeScript
28 lines
606 B
TypeScript
/** Angular Imports */
|
|
import { Injectable } from '@angular/core';
|
|
|
|
/** rxjs Imports */
|
|
import { Observable } from 'rxjs';
|
|
|
|
/** Custom Services */
|
|
import { AccountingService } from '../accounting.service';
|
|
|
|
/**
|
|
* GL accounts data resolver.
|
|
*/
|
|
@Injectable()
|
|
export class GlAccountsResolver {
|
|
/**
|
|
* @param {AccountingService} accountingService Accounting service.
|
|
*/
|
|
constructor(private accountingService: AccountingService) {}
|
|
|
|
/**
|
|
* Returns the gl accounts data.
|
|
* @returns {Observable<any>}
|
|
*/
|
|
resolve(): Observable<any> {
|
|
return this.accountingService.getGlAccounts();
|
|
}
|
|
}
|