mgechev / angularjs-style-guide

📚 Community-driven set of best practices for AngularJS application development

Home Page:https://mgechev.github.io/angularjs-style-guide/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Naming services

icruces opened this issue · comments

Hi,

I have a bit confusion about how to name services.

The Services section says:

UpperCamelCase (PascalCase) for naming your services, used as constructor functions.

...

lowerCamelCase for all other services.

However, the Order factory example uses UpperCamelCase but it is not used as constructor function (the injector injects an Order object). Shouldn't it use lowerCamelCase?

Thanks.

Thanks for the catch! Fixed.