Feature: Recipe module mostly working. What needs to be done is duplicating recipes and export for checking.

Feature: Non Contract Purchases Report
This commit is contained in:
2021-11-10 10:57:18 +05:30
parent 3b8c972c48
commit ffd46bf717
59 changed files with 2139 additions and 251 deletions
@@ -0,0 +1,18 @@
import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, Resolve } from '@angular/router';
import { Observable } from 'rxjs/internal/Observable';
import { Recipe } from './recipe';
import { RecipeService } from './recipe.service';
@Injectable({
providedIn: 'root',
})
export class RecipeResolver implements Resolve<Recipe> {
constructor(private ser: RecipeService) {}
resolve(route: ActivatedRouteSnapshot): Observable<Recipe> {
const id = route.paramMap.get('id');
return this.ser.get(id);
}
}