updateView();
function updateView() {
app.innerHTML = /*html*/ `
Bikes R Us
Alle sykkler:
${bikeList()}
`;
}
function bikeList() {
let bikeHtml = '';
for (i = 0; i < modell.data.bikes.length; i++) {
bikeHtml += /*html*/ `
- Merke: ${modell.data.bikes[i].modell}
- Gir: ${modell.data.bikes[i].gears}
- Beskrivelse: ${modell.data.bikes[i].description}
- Tilgjengelig: ${modell.data.bikes[i].isAvilable}
- Tilstand: ${modell.data.bikes[i].state}
`;
}
return bikeHtml;
}
function addBikeview(){
let addBikeHtml = /*html*/ `
`;
}