Service vs Factory for data sharing?

Hi, I was reading through this tutorial, http://learn.ionicframework.com/formulas/sharing-data-between-views/ about sharing data between controllers. I have been using factories to do this for awhile and seems to be a common practice people do. In the tutorial, a service is used not a factory. Now I am confused which one I SHOULD be using. Can you help me understand which I should be using?

The differences between the two are more internal to angular. You could use either factory or service without any issues.

Here’s a good post about the differences

1 Like

Here’s another one.
Sounds like if you’re getting started just use a service.
https://www.airpair.com/angularjs/posts/top-10-mistakes-angularjs-developers-make#5-service-vs-factory

1 Like

Awesome! Thanks guys.