In the directives exercise, https://www.codecademy.com/en/courses/learn-angularjs/lessons/your-first-app/exercises/your-first-app-directives
I noticed that we still use product.name; product.price etc in the expression in view.
However, in MainController.js, the variable name is plural -- products.
How can the dot notation work if the variable names are inconsistent?
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.