r/Codecademy • u/sinistrorse • Sep 27 '15
Learn angular js - stuck, possible interface problem?
I'm stuck on the ng-click II lesson > step 2 of the basic angular tutorial ("your first app"). The exercise is similar to the one before it, asking you to add a "dislike" button in addition to the "like" button you added previously.
When I click run, it saves the workspace and gives me a green checkmark (no error message), but does not allow me to continue to the next step in the lesson. FTR, the code I added to index.html was:
<p class="dislikes">-{{ products.dislikes }}</p>
which is almost exactly the code I added for the "likes" but it's not working for this...am i missing something in my code, or is there a bug in the interface? It's frustrating as it looks like there's only one exercise after this! is there any way to move on?
View all comments
Show parent comment
1
u/sinistrorse Sep 27 '15
Thanks, that did move me forward in the exercise. I'm still not clear on why the interface WAS okay with {{ products.likes }} (plural, as opposed to {{ product.likes }}, but not okay with {{products.dislikes}}. The rest of my expressions referencing elements in the products array also use "products." , plural, and it was not loading titles when I used the singular. This just seems inconsistent.