I am building an app with Polymer. In my app, a user logs into the app. When they login, I am trying to show their orders. They can then choose an order and view the order d
You can use custom event fired from the host for reloading your customers-orders when login is successfully, For viewing the customer order you need to grab the orders selected by the customer.
Add another Object for storing selecting orders let's says selectedOrders
and using array-selector you can ensures path linkage when selecting specific items and store orders in selectedOrders
. I have scaffold something here , though I did not test it can gives you something that might help you. Especially
Welcome. You have ordered:
[[ order.total ]]
[[ order.description ]]
//close the dom-repeat template
the customer-order
element should have a property data that fetch selected orders data from the selectedOrder
in customers-orders
.