As I understand it, when inside a factory I return an object that gets injected into a controller. When inside a service I am dealing with the object using this
this
For short and simple explanation refer https://stackoverflow.com/a/26924234/5811973.
For detailed explanation refer https://stackoverflow.com/a/15666049/5811973.
Also from angularJs documentation: