tanshu
1350870f9e
Added prettier and also prettied all the typescript files using prettier ESLint is using the AirBnB rules which are the most strict to lint the files.
17 lines
589 B
TypeScript
17 lines
589 B
TypeScript
import { Injectable } from '@angular/core';
|
|
import { ActivatedRouteSnapshot, Resolve, RouterStateSnapshot } from '@angular/router';
|
|
import { Observable } from 'rxjs/internal/Observable';
|
|
import { Account } from '../core/account';
|
|
import { AccountService } from '../core/account.service';
|
|
|
|
@Injectable({
|
|
providedIn: 'root',
|
|
})
|
|
export class ReceiptAccountsResolver implements Resolve<Account[]> {
|
|
constructor(private ser: AccountService) {}
|
|
|
|
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<Account[]> {
|
|
return this.ser.receiptAutocomplete('');
|
|
}
|
|
}
|