title: using angularjs $filter() inside directives
body: <p>i want to hide some part of the input text value using some filter. </p>
  
  <pre><code>app.directive('limtToDate', ['$filter', function ($filter) {
  var dateFormat = "DD/MM/YYYY HH:mm"
  return {
      restrict: 'A',
      link: function (scope, ielem, attrs) {
          scope.$watch(attrs.ngModel, function (v) {
              console.log('value changed, new value is: ' + v);
              $filter('limitTo')(ielem.val(), -5);
          });
      }
  }}]);
  </code></pre>
  
  <p><a href="http://jsfiddle.net/PqAhk/2/">http://jsfiddle.net/PqAhk/2/</a></p>
  
  <p>well, my input text should just show  12:12  instead of 01/01/1970 12:12. and after editing the time, for example, if user change the time to 12:40 my ng-model has to be like following 1970/01/01 12:40</p>