To display the details for the selected product you can use the following template in your HTML:
{{cartCtrl.selectedProduct.productId}}
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.