Skip to content
This repository has been archived by the owner on Dec 4, 2017. It is now read-only.

Angular tutorial misleading #2645

Open
jeremylawcs opened this issue Oct 21, 2016 · 2 comments
Open

Angular tutorial misleading #2645

jeremylawcs opened this issue Oct 21, 2016 · 2 comments
Assignees

Comments

@jeremylawcs
Copy link

Hi all, I was following this tutorial when I came across an error which I didn't understand. The good folks at StackOverflow helped me work my problem out quickly enoughh, but I believe the problem is within the wording of this line:

The quoted text assigned to ngFor means “take each hero in the heroes array, store it in the local hero variable, and make it available to the corresponding template instance”.

The problem I had was that I misunderstood that the 'hero' referred to ngFor was accessible across the entire template instance within the Component when it is only accessible within the scope of the tag. Changing the wording of this may help future beginners going through the tutorial. Cheers!

@jurban1997
Copy link

I diagrammed the objects in order to understand how everything interrelates. This may not be 100% accurate, but it helped me make sense out of it.
angular-process-to-postgres_01 5

@jurban1997
Copy link

And this is the next stage of development on the tutorial.
angular-process-to-postgres_01 6

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants