title: AngularJS - How can I use .config() method with my own services?
body: <p>I recently used the <code>.config()</code> method on an angular module I was developing in order to use AngularJS's routes. It's looked something like:</p>
  
  <pre><code>myModule.config([
      '$locationProvider',
      '$routeProvider',
      function ($locationProvider, $routeProvider) {
  
      $locationProvider.html5Mode(false);
      $locationProvider.hashPrefix('!');
  
      $routeProvider.when('/', {
          controller: 'myCtrl'
      });
  }]);
  </code></pre>
  
  <p>How does this method work? Can I configure my own services using this method? Should I?</p>