From 10e1f5849fb7f64dd188f08b5e5f682d0b162777 Mon Sep 17 00:00:00 2001 From: schencej Date: Tue, 10 Dec 2019 22:24:09 -0500 Subject: fixed recipe pass service --- recipeBuddy/src/app/DataModels/step.ts | 10 +++++----- recipeBuddy/src/app/app-routing.module.ts | 4 +++- recipeBuddy/src/app/app.module.ts | 4 ++-- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/recipeBuddy/src/app/DataModels/step.ts b/recipeBuddy/src/app/DataModels/step.ts index 06c15c9..ef07596 100644 --- a/recipeBuddy/src/app/DataModels/step.ts +++ b/recipeBuddy/src/app/DataModels/step.ts @@ -1,14 +1,14 @@ export class Step { - public instruction: string; + public instructions: string; public timer: number; - public constructor(instruction: string, timer: number) { - this.instruction = instruction; + public constructor(instructions: string, timer: number) { + this.instructions = instructions; this.timer = timer; } - public getInstruction(): string { - return this.instruction; + public getInstructions(): string { + return this.instructions; } public getTimer(): number { diff --git a/recipeBuddy/src/app/app-routing.module.ts b/recipeBuddy/src/app/app-routing.module.ts index 049bf74..8bd5fed 100644 --- a/recipeBuddy/src/app/app-routing.module.ts +++ b/recipeBuddy/src/app/app-routing.module.ts @@ -7,9 +7,11 @@ import { AddRecipeComponent } from './add-recipe/add-recipe.component'; const routes: Routes = [ { path: '', redirectTo: '/cook', pathMatch: 'full' }, - {path: 'preCook' , component: PreCookPopUpComponent }, + { path: 'preCook' , component: PreCookPopUpComponent }, { path: 'add', component: AddRecipeComponent }, { path: 'cook', component: CookPageComponent } +]; + @NgModule({ imports: [RouterModule.forRoot(routes)], exports: [RouterModule] diff --git a/recipeBuddy/src/app/app.module.ts b/recipeBuddy/src/app/app.module.ts index a2db49c..00a26c4 100644 --- a/recipeBuddy/src/app/app.module.ts +++ b/recipeBuddy/src/app/app.module.ts @@ -6,12 +6,12 @@ import { MatDialogModule } from '@angular/material'; import { AppComponent } from './app.component'; import { CookPageComponent} from './cook-page/cook-page.component'; +//import { RecipePassService } from './recipePass/recipe-pass.service'; import { AppRoutingModule } from './app-routing.module'; import { HttpClientModule } from '@angular/common/http'; import { PreCookPopUpComponent } from './pre-cook-pop-up/pre-cook-pop-up.component'; -import { RecipePassService } from './recipePass/recipe-pass.service' import { AddRecipeComponent } from './add-recipe/add-recipe.component'; import { ReactiveFormsModule } from '@angular/forms'; @@ -41,7 +41,7 @@ import { MatButtonModule } from '@angular/material/button'; MatIconModule, MatButtonModule ], - providers: [RecipePassService], bootstrap: [AppComponent], +// providers: [RecipePassService] }) export class AppModule { } -- cgit v1.1