Hacker News new | ask | show | jobs
by spurton 4268 days ago
Great tutorial. Good overall guide vs. many I have read that go over most of the basic Angular starter points.

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".