AngularJS: Use The Service, Not The Controller If you’re just getting started with AngularJS, you may be stuffing your controllers with lots of business logic. You may even be wondering how to persist data in your controller, and how to pass that data between controllers. view source