Chore:
Moved to Angular 16 Moved to FastAPI 0.100.0 Moved to pydantic 2.0
This commit is contained in:
@ -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 { UpdateProductPrices } from './update-product-prices';
|
||||
@ -8,7 +8,7 @@ import { UpdateProductPricesService } from './update-product-prices.service';
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class UpdateProductPricesResolver implements Resolve<UpdateProductPrices> {
|
||||
export class UpdateProductPricesResolver {
|
||||
constructor(private ser: UpdateProductPricesService) {}
|
||||
|
||||
resolve(route: ActivatedRouteSnapshot): Observable<UpdateProductPrices> {
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
<!-- Old Price Column -->
|
||||
<ng-container matColumnDef="oldPrice">
|
||||
<mat-header-cell *matHeaderCellDef class="right">Old Price</mat-header-cell>
|
||||
<mat-cell *matCellDef="let row" class="right">{{ row.oldPrice | currency : 'INR' }}</mat-cell>
|
||||
<mat-cell *matCellDef="let row" class="right">{{ row.oldPrice | currency: 'INR' }}</mat-cell>
|
||||
</ng-container>
|
||||
|
||||
<!-- New Price Column -->
|
||||
|
||||
@ -15,7 +15,10 @@ const serviceName = 'UpdateProductPricesService';
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class UpdateProductPricesService {
|
||||
constructor(private http: HttpClient, private log: ErrorLoggerService) {}
|
||||
constructor(
|
||||
private http: HttpClient,
|
||||
private log: ErrorLoggerService,
|
||||
) {}
|
||||
|
||||
get(id: string | null, date: string | null): Observable<UpdateProductPrices> {
|
||||
const getUrl: string = id === null ? url : `${url}/${id}`;
|
||||
|
||||
Reference in New Issue
Block a user