Question: what is difference between service and controller in angularjs?
Answer: controllers - responsibilities: initialize the view, mediate interaction between view/scope and services. It has dependencies on the view and model, but is more concerned with the view and making it work. services - responsibilities: provides business services that is not dependent on the view or the controller.