title: How to pass $filter inside link function of angular directive
body: <p>I need $filter inside the link function of angular directive but there is no way to pass $filter as a parameter to link function.</p>
  
  <pre><code>app.directive('myDirective', function($compile) {
    return {
      restrict: 'A',
      scope: {
        ngModel: '=',
      },
      require: 'ngModel',
      link: function($scope, elem, attr, ctrl) {
  
      }
    };
  });
  </code></pre>
  
  <p><a href="http://plnkr.co/edit/XpnY5dq7rnl2sWXlsN4t?p=preview" rel="noreferrer">http://plnkr.co/edit/XpnY5dq7rnl2sWXlsN4t?p=preview</a></p>
  
  <p>How to access the $filter inside link function?</p>