Files
barker/bookie/src/app/regimes/regime-list-resolver.service.ts
Amritanshu e46fe7f90e Feature: Tax Regimes are added so that different bills with different series can be printed for Different regimes such as VAT and GST
Chore: Model relationships updated to make them simpler
Chore: Bill printing majorly refactored for it

Due to the sheer depth of the changes. There can be showstoppers. Please test it carefully
2023-03-05 23:50:41 +05:30

19 lines
434 B
TypeScript

import { Injectable } from '@angular/core';
import { Resolve } from '@angular/router';
import { Observable } from 'rxjs';
import { Regime } from '../core/regime';
import { RegimeService } from './regime.service';
@Injectable({
providedIn: 'root',
})
export class RegimeListResolver implements Resolve<Regime[]> {
constructor(private ser: RegimeService) {}
resolve(): Observable<Regime[]> {
return this.ser.list();
}
}