In this section, we'll make a small shopping cart app. We'll have a list of products, so that user can choose from.
We have a list of cart item that display item name and quanity. In that list, we have a button to remove cart item from the list.
First of all, we have some bootstrap HTML template for our app.
In the template, we have a select box of products and we have to table to display cart items.
After that, initialize some products within a ViewModel class
Is that simple for binding select box/dropdown?
We provide the function the list of products, selected items, display field, value field. All the magic happens behind the scence.