Moved to Angular 16
Moved to FastAPI 0.100.0
Moved to pydantic 2.0
This commit is contained in:
tanshu committed 2023-07-22 09:20:01 +05:30
1 parent 8b2d15b9e1
commit 09b762d154
161 files changed
+693 -753

No files matched your search

@@ -1,5 +1,4 @@
import { Injectable } from '@angular/core';
import { Resolve } from '@angular/router';
import { Observable } from 'rxjs';
import { Section } from '../core/section';
@@ -9,7 +8,7 @@ import { SectionService } from './section.service';
@Injectable({
providedIn: 'root',
})
export class SectionListResolver implements Resolve<Section[]> {
export class SectionListResolver {
constructor(private ser: SectionService) {}
resolve(): Observable<Section[]> {
@@ -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 { Section } from '../core/section';
@@ -9,7 +9,7 @@ import { SectionService } from './section.service';
@Injectable({
providedIn: 'root',
})
export class SectionResolver implements Resolve<Section> {
export class SectionResolver {
constructor(private ser: SectionService) {}
resolve(route: ActivatedRouteSnapshot): Observable<Section> {
+4 -1
View File
@@ -16,7 +16,10 @@ const serviceName = 'SectionService';
providedIn: 'root',
})
export class SectionService {
constructor(private http: HttpClient, private log: ErrorLoggerService) {}
constructor(
private http: HttpClient,
private log: ErrorLoggerService,
) {}
get(id: string | null): Observable<Section> {
const getUrl: string = id === null ? url : `${url}/${id}`;