feat: add list view in chart of accounts component

Add list view for GL accounts in chart of accounts component.
This commit is contained in:
Abhay Chawla
2018-08-02 01:18:03 +05:30
parent ff8e878e9a
commit 6643e44afc
9 changed files with 219 additions and 6 deletions
@@ -0,0 +1,16 @@
import { Injectable } from '@angular/core';
import { Resolve } from '@angular/router';
import { Observable } from 'rxjs';
import { AccountingService } from '../accounting.service';
@Injectable()
export class ChartOfAccountsResolver implements Resolve<Object> {
constructor(private accountingService: AccountingService) {}
resolve(): Observable<any> {
return this.accountingService.getChartOfAccounts();
}
}