Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript AngularJS An Introduction to Two-Way Data Binding Looking at ng-model: Part 2

This tutorial is garbage. Not clear at all what instructor is doing nor why he's doing it.

I am so lost.

3 Answers

I remember feeling that way also when I first saw this video, also.


What is your background?

Have you worked with the Mean stack (MongoDB, Express, AngularJS and Node.j) before:

https://en.wikipedia.org/wiki/MEAN_%28software_bundle%29


Without knowing what your specific "gap in understanding" is all I can do is post

a few supplemental tutorials:

http://www.sitepoint.com/two-way-data-binding-angularjs/

http://www.codeproject.com/Articles/808257/Part-Data-Binding-In-AngularJS

http://kodypeterson.com/angularjs-the-3-types-of-data-binding/

http://www.9lessons.info/2013/09/angularjs-tutorial-two-way-data-binding.html

http://sravi-kiran.blogspot.com/2013/02/EasyTwoWayDataBindingInHtmlPagesWithAngularJS.html

http://blog.hfarazm.com/data-binding-angularjs/

http://henriquat.re/intro/angular/angularjsForDotNetDevelopers.html

This one has a nice "Project Architecture" diagram:

https://codeforgeek.com/2014/09/two-way-data-binding-angularjs/

This StackOverFlow thread has some useful info on the "Digest Cycle":

http://stackoverflow.com/questions/30425052/how-angularjs-implement-its-two-way-data-binding-mechanism

A nice talk on comparing "the two-way binding in AngularJS, EmberJS and KnockoutJS":

http://2013.jsconf.eu/speakers/marius-gundersen-a-comparison-of-the-twoway-binding-in-angularjs-emberjs-and-knockoutjs.html


Personally I not a big fan of the the AngularJS ng-model documentation:

https://docs.angularjs.org/api/ng/directive/ngModel

I did find this page helpful in increasing my understanding of the ng-model

(had a few diagrams):

https://masteringmean.com/lessons/293-Creating-Advanced-Forms-Looking-Inside-ngModel-Data-Binding


The best thing I can tell you, Sua, is that Treehouse isn't the only source of information on any given technical subject.

You've got the most complete knowledge source that mankind has ever generated at your fingertips : The Internet.


And generally what I recommend for students who find themselves getting "lost" after wandering into a technical "thicket" that is just too dense is:

Back out of the thicket and spend some time wandering around the outside of the thicket.

Circle around it to trace it's perimeter (and the technical subject matter surround it).


Then come back to it after you've had a chance to explore around it from different "views"

and you may find the "thicket" a little less dense the second time around.

thanks so much this was actually extremely helpful

james white whoa that masteringmean link is clutch. I've been focusing on the MEAN stack lately. I also agree that the Angular course wasn't one of the best courses to follow. James provided some great info and advice.

David Tonge Very true

Jedadiah Ashford
Jedadiah Ashford
152 Points

Although I certainly don't fully agree with this whining comment. I do have to agree that I feel like I missed something. Maybe we need to back out a little and discuss the structure of app.js. I have a strong background in HTML, CSS, JQuery, Java, PHP, MySQL, Android, etc and I'm finding it hard to follow. We went straight from MVC to directives without some of the basics. I'm going to continue on in hopes that the fundamental structure of Angular is discussed further.

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,253 Points

There is an upcoming course coming in the next month or so called Angular Basics which seems to look at Angular at a lower level than the current Angular course. I think it's going to run alongside rather than replace it and I have high hopes for the course. Stay tuned for it. :-)