Lexyful / What-s-Cookin

0 stars 0 forks source link

Save recipe heart button #60

Closed BriBourassa closed 1 year ago

BriBourassa commented 1 year ago

Got a lot accomplished! the saveRecipe function is working in both the data model and the DOM - it will update the recipesToCook array when the heart is clicked, either add or remove. The DOM also is working with the heart turning pink when clicked.

Also, the recipe we were calling on was from the raw data, not going through the class constructor. I updated that (line 49-53) and we might need to do the same for other classes, need to check on where the data is being pulled from more thoroughly.

I cleaned up the HTML a little bit and changed the innerHTML for each function to match. Overall some stuff is up and running and I left some notes in, but there is still a couple more functions and DOM elements that need to be completed (large recipe card most of all)

Lexyful commented 1 year ago

Great work Bri! So excited that you and your mentor were able to troubleshoot and get the heart button to do the thing!