Chore:
Moved to Angular 16 Moved to FastAPI 0.100.0 Moved to pydantic 2.0
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Resolve } from '@angular/router';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
import { SettleOption } from '../core/settle-option';
|
||||
@ -9,7 +8,7 @@ import { SettleOptionService } from './settle-option.service';
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class SettleOptionListResolver implements Resolve<SettleOption[]> {
|
||||
export class SettleOptionListResolver {
|
||||
constructor(private ser: SettleOptionService) {}
|
||||
|
||||
resolve(): Observable<SettleOption[]> {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { ActivatedRouteSnapshot, Resolve } from '@angular/router';
|
||||
import { ActivatedRouteSnapshot } from '@angular/router';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
import { SettleOption } from '../core/settle-option';
|
||||
@ -9,7 +9,7 @@ import { SettleOptionService } from './settle-option.service';
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class SettleOptionResolver implements Resolve<SettleOption> {
|
||||
export class SettleOptionResolver {
|
||||
constructor(private ser: SettleOptionService) {}
|
||||
|
||||
resolve(route: ActivatedRouteSnapshot): Observable<SettleOption> {
|
||||
|
||||
@ -17,7 +17,10 @@ const serviceName = 'SettleOptionService';
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class SettleOptionService {
|
||||
constructor(private http: HttpClient, private log: ErrorLoggerService) {}
|
||||
constructor(
|
||||
private http: HttpClient,
|
||||
private log: ErrorLoggerService,
|
||||
) {}
|
||||
|
||||
get(id: string | null): Observable<SettleOption> {
|
||||
const getUrl: string = id === null ? url : `${url}/${id}`;
|
||||
|
||||
Reference in New Issue
Block a user