blob: 396784d3be344efc15526693a1882fdd8342d9b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import { Component, OnInit } from '@angular/core';
import { RecipePassService } from '../RecipePass/recipe-pass.service';
import { Recipe } from '../DataModels/recipe';
import { BackendService } from '../REST_service/backend.service';
@Component({
selector: 'app-pre-cook-pop-up',
templateUrl: './pre-cook-pop-up.component.html',
styleUrls: ['./pre-cook-pop-up.component.css']
})
export class PreCookPopUpComponent implements OnInit {
cookedRecipe: Recipe;
constructor(private recipePass: RecipePassService, private backend: BackendService) { }
ngOnInit() {
this.backend.getRecipe(1).subscribe(res =>
{
this.cookedRecipe = res
});
//this.recipeToBeCooked = this.recipePass.getRecipe();
}
}
|