title: Creating common controller functions
body: <p>How do I create some sort of utils bundle that would be accessible from all my controllers?</p>
  
  <p>I have this route code in my main module:</p>
  
  <pre><code>'use strict';
  
  angular.module('lpConnect', []).
      config(['$routeProvider', function($routeProvider) {
      $routeProvider.
          when('/home', {template: 'views/home.html', controller: HomeCtrl}).
          when('/admin', {template: 'views/admin.html', controller: AdminCtrl}).
          when('/connect', {template: 'views/fb_connect.html', controller: MainAppCtrl}).
          otherwise({redirectTo: '/connect'});
  }]);
  </code></pre>
  
  <p>I want a function that can be common to <code>HomeCtrl</code>, <code>AdminCtrl</code> and <code>MainAppCtrl</code>.</p>
  
  <p>How should I do it in AngularJS?</p>