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

Different terminology in "Services" section

adambabik opened this issue · comments

Hi,

I'm wondering about the terminology used in these points in "Services" section:

  • Encapsulate the business logic in models created using services.
  • For creating models it is preferred to use service instead of factory.

I'm not convinced that model is a proper word. From my experience it's reserved for properties of an Angular Scope object.

From AngularJS docs:

In Angular, a model is any data that is reachable as a property of an angular Scope object.

Objects created using service or factory are just services I guess.

Yes, this is a proper note. I will fixed it.