labs / tiddlywiki / tiddlers / content / labs / lab10 / _Labs_10_'How many do you want to buy_'

To display the details for the selected product you can use the following template in your HTML:

  • selectedProduct refers to the controller field that you added in step 4.1.

  • cartCtrl is the name of the controller variable that you used in the ng-controller attribute. It should be an instance of the Shopping Cart controller that you created in step 4.