title: Injection of dependencies in a filter function
body: <p>I'm writing a custom filter which depends on a constant object named <code>config</code>. This is what I've got so far:</p>
  
  <pre><code>angular.module('myproject.filters', []).filter('userLink', function () {
      return function (user) {
          return '';
      };
  });
  </code></pre>
  
  <p>I need to inject the '<code>config</code>' module into my filter so I can pull a static value out of it for building the link to a given user object.</p>
  
  <p>How do I inject dependencies into filter functions?</p>