Exercise 7/11

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/learn-angularjs/lessons/your-first-app/exercises/your-first-app-ng-repeat-ii?action=lesson_resume

<In what way does your code behave incorrectly? Include ALL error messages.>
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 products one 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.