mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 20:28:46 -05:00
working on a recipe view
This commit is contained in:
34
vue/src/components/Step.vue
Normal file
34
vue/src/components/Step.vue
Normal file
@@ -0,0 +1,34 @@
|
||||
<template>
|
||||
<div>
|
||||
|
||||
<div v-for="i in step.ingredients" v-bind:key="i.id">
|
||||
<Ingredient v-bind:ingredient="i" v-bind:servings="servings"></Ingredient>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
|
||||
Servings Step: {{servings}}
|
||||
|
||||
{{ step.instruction }}
|
||||
|
||||
<br/>
|
||||
<br/>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
import Ingredient from "@/components/Ingredient";
|
||||
|
||||
export default {
|
||||
name: 'Step',
|
||||
components: {
|
||||
Ingredient
|
||||
},
|
||||
props: {
|
||||
step: Object,
|
||||
servings: Number,
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user