Open isischristopher opened 4 years ago
As a user, when I load the page, location cards are on the page, 3 cards per row.
WHEN the page loads THEN places objects print to the DOM in a card AND each card contains an input box and a submit button.
printToDom function is in javascripts/helpers/utilities.js use a for loop to loop through places array to print each object.
printToDom
places
const printToDom = (divId, toPrint) => { $(#${divId}).html(toPrint); };
const printToDom = (divId, toPrint) => { $(
).html(toPrint); };
User Story
As a user, when I load the page, location cards are on the page, 3 cards per row.
AC
WHEN the page loads THEN places objects print to the DOM in a card AND each card contains an input box and a submit button.
Dev Notes
printToDom
function is in javascripts/helpers/utilities.js use a for loop to loop throughplaces
array to print each object.