skywalkah / recipe-patch

Search for recipes based on a specific cuisine or ingredients. Once you like a recipe, add the ingredients to a shopping list and get directions to the nearest grocery store.
MIT License
0 stars 2 forks source link

Logic (JS) for the add ingredients to shopping list button on recipe card #12

Open anicrob opened 1 year ago

anicrob commented 1 year ago

part of this user story:

AS a Recipe Patch app user, I WANT to add ingredients from a recipe to the shopping list SO THAT I can keep track of what ingredients I need to buy

for this task, here are the AC:

GIVEN the recipe cards have been rendered already, WHEN the user clicks on the button "Add Ingredients to Shopping List" THEN all of the ingredients are added to the shopping list THEN the shopping list items are saved to local storage

anicrob commented 1 year ago

map to get an array of ingredients stored in a variable, for each loop to create a list item

anicrob commented 1 year ago

certain type of list item type = checkbox