Serving processed http response from factories in
Factories and services more or less could be used to achieve similar stuff. Factories are preferred over services where logic becomes a bit complicated. Factories are injectable function that can return stuff. For eg: If you inject a factory into an controller, whatever is returned by the factory