AngularJS Tutorial: A Comprehensive 10,000 Word Guide
airpair.com
airpair.com
So as long as you write your REST endpoints correctly, your front-end will fall into line.
How, exactly? Basic auth? Cookies? Tokens? OAuth?
There are lots of ways to do this, and I agree with your parent that if there is a best practice, it isn't obvious or well-known.
Edit: Ignore this - posted at the same time as arms!
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 get that you prefer to do that for a controller exposed in the scope but why not use the prototype for a service ?
I have a question about the syntax you are using for factories and services. I notice you use Pascal Case for your objects vs. Camel Case as in the AngularJS docs... I like to use best practices and have seen both so I am not sure which is kosher in the community. Is that something that is changing?
I noticed you define it as a function first then reference it in the constructor. I understand what you are doing but again the examples I have seen do it differently so I am confused as to which way to do it and the "why".