liste wird nun in den listen hinzugefügt
This commit is contained in:
1 parent
6aa624a507
commit
66e8ac13ea
1 file changed
+8
@@ -0,0 +1,8 @@
|
||||
import { ShoppingList } from "../../../models/ShoppingList.js";
|
||||
|
||||
|
||||
export function addList(listAsJSON) {
|
||||
const list = document.querySelector(".displayedList");
|
||||
const listElement = ShoppingList.fromJSON(listAsJSON);
|
||||
list.append(listElement.render());
|
||||
}
|
||||
Reference in new issue
Block a user