in MainController.js we have declared an array named products, however in the view we are using product.name and so on rather than products.name. Even then it displays the correct output. When I changed the veiw code to products.name I did not get the correct expected output.
Please help me understand how exactly is it working even when we are not using the correct name.
In the view if we are iterating over
product at a time,
ng-repeat="product in products"
Do you have this in your code?
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.