summaryrefslogtreecommitdiff
path: root/recipeBuddy/src/app/recipePass/recipe-pass.service.ts
blob: e925973eb0b119f52aa26e9b62fadf9897185391 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { Injectable } from '@angular/core';
import { Recipe } from '../DataModels/recipe';

@Injectable({
	providedIn: 'root',
})
export class RecipePassService {

	private sourceRecipe: Recipe;

  constructor() { }

	public setRecipe (recipeToPass: Recipe) {
		this.sourceRecipe = recipeToPass;
	}

	public getRecipe (): Recipe {
		return this.sourceRecipe;
	}
}