title: Angular JS call function from template which doesn't belong to the scope
body: <p>This might sound odd, but I have a repeater which looks like this.</p>
  
  <pre><code>&lt;tr ng-repeat="task in tasks"&gt;
      &lt;td&gt;{{getFriendlyDate(date)}}&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>I can put this function on the scope like this.</p>
  
  <pre><code>$scope.getFriendlyDate = function(date){
  
      /* Code to convert ISO date to readable date */
      return date;
  
  };
  </code></pre>
  
  <p>That works fine, but I need to use this function in lots of templates so I don't want to have to copy and paste it into lots of controllers.</p>
  
  <p>One option is to create a service to do this and put a simple wrapper on the scope in each controller, but that's not going to save me much time.</p>
  
  <p>Another option is to put the function on the root scope and access it directly in my templates, but I'd prefer it to live in my utilities library (I have a $utils library created using a factory).</p>
  
  <p>I'm wondering if it's possible to call a service to do the date conversion directly from the template?</p>