Skip to content

Commit

Permalink
Add stub shopping list data
Browse files Browse the repository at this point in the history
  • Loading branch information
bradley-holt committed Sep 26, 2017
1 parent 2a83a42 commit 3b2e4c4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/my-lists.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,21 @@
return listOfShoppingLists.isEmpty();
}

ready() {
super.ready();
let shoppingList01 = this.shoppingListFactory.newShoppingList({
title: "Groceries"
});
let shoppingList02 = this.shoppingListFactory.newShoppingList({
title: "Camping Supplies"
});
let listOfShoppingLists = this.shoppingListFactory.newListOfShoppingLists([
shoppingList01,
shoppingList02
]);
this._setListOfShoppingLists(listOfShoppingLists);
}

}
window.customElements.define(MyLists.is, MyLists);
</script>
Expand Down

0 comments on commit 3b2e4c4

Please sign in to comment.