in codelab-initial-state/public/js/homepage.js [182:190]
showCart() {
if (this.auth.currentUser === null) {
return;
}
const items = this.cartItems.map(doc => `${doc.name} - ${doc.price}`);
this.modalDialog.setContent(new CartList(items));
this.modalDialog.show();
}