Inconsistent variable names between html and MainController.js

<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.>
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?

<In what way does your code behave incorrectly? Include ALL error messages.>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.