Feautre: Recipe export to xlsx Chore: Python 11 style type annotations Chore: Moved to sqlalchemy 2.0 Chore: Minimum python is 3.11 Fix: Fix nullability of a lot of fields in the database.
20 lines
549 B
TypeScript
20 lines
549 B
TypeScript
import { Injectable } from '@angular/core';
|
|
import { ActivatedRouteSnapshot } from '@angular/router';
|
|
import { Observable } from 'rxjs/internal/Observable';
|
|
|
|
import { ProductGroup } from '../core/product-group';
|
|
|
|
import { ProductGroupService } from './product-group.service';
|
|
|
|
@Injectable({
|
|
providedIn: 'root',
|
|
})
|
|
export class ProductGroupResolver {
|
|
constructor(private ser: ProductGroupService) {}
|
|
|
|
resolve(route: ActivatedRouteSnapshot): Observable<ProductGroup> {
|
|
const id = route.paramMap.get('id');
|
|
return this.ser.get(id);
|
|
}
|
|
}
|