diff options
author | schencej <schencej@clarkson.edu> | 2019-12-12 11:56:57 -0500 |
---|---|---|
committer | schencej <schencej@clarkson.edu> | 2019-12-12 11:56:57 -0500 |
commit | 47254348140fce18c985e9a0ffb592390b226c80 (patch) | |
tree | 407d7c52ad55a02f006b095be71ff1056864766e /recipeBuddy/src/app/pre-cook-pop-up | |
parent | 946512c32a3b94079c9d2aaf48ef16d09fd14e3d (diff) |
added main page
Diffstat (limited to 'recipeBuddy/src/app/pre-cook-pop-up')
-rw-r--r-- | recipeBuddy/src/app/pre-cook-pop-up/pre-cook-pop-up.component.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/recipeBuddy/src/app/pre-cook-pop-up/pre-cook-pop-up.component.ts b/recipeBuddy/src/app/pre-cook-pop-up/pre-cook-pop-up.component.ts index cee624e..7ec8ef2 100644 --- a/recipeBuddy/src/app/pre-cook-pop-up/pre-cook-pop-up.component.ts +++ b/recipeBuddy/src/app/pre-cook-pop-up/pre-cook-pop-up.component.ts @@ -21,15 +21,16 @@ export class PreCookPopUpComponent implements OnInit { constructor(private recipePass: RecipePassService, private backend: BackendService, private router: Router) { } ngOnInit() { - this.backend.getRecipe(20).subscribe(res => - { - this.cookedRecipe = res; + this.cookedRecipe = this.recipePass.getRecipe(); +// this.backend.getRecipe(20).subscribe(res => +// { +// this.cookedRecipe = res; this.originalSize = this.cookedRecipe.servingSize; for(var _i = 0; _i < this.cookedRecipe.ingredients.length; _i++) { this.originalAmounts[_i] = this.cookedRecipe.ingredients[_i].amount; } this.recipePass.setRecipe(this.cookedRecipe); - }); +// }); } updateRecipe(event: any) { |