Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Feedback really welcome, looking to expand this guide to include testing and other Angular features :)


Awesome guide Todd -- thank you so much for taking the time to put this together (I know how scarce time can be, and I also know how much time goes into a 10k-word tutorial, so it's appreciated).

I went through the whole thing last week when it went live, and right off the top of my head, my biggest piece of feedback is that there are several sections where ideas/concepts are introduced without enough context. I've been playing with Angular for a few months so have a baseline of knowledge, but I know that were I a newbie, some things would be confusing.

The first example that stuck out is in section 4 ('Understanding $scope'). That paragraph mentions Controllers several times, and refers to some code that includes the ng-controller directive. But Controllers aren't introduced until section 5.

So as someone who likes to fully understand each block of example code I'm presented, that would likely be confusing if I hadn't already known what Controllers were. So in that section, maybe a bit of re-ordering / introduction is called for.

(Perhaps you can find a "pure novice" out there who will volunteer to read the whole thing over and highlight where that sort of thing happens.)

Many thanks again for putting this together!


I'm always surprised to see methods declared in the constructor.

I get that you prefer to do that for a controller exposed in the scope but why not use the prototype for a service ?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: