title: Where to keep utility functions in angular2 that are available in templates
body: <p>I have a few simple "pure" utility functions in my app which i want to keep in one place. The problem is, i can import them in my components by using:</p>
  
  <pre><code>import { utilities } from '../shared/utilities'
  </code></pre>
  
  <p>However these utility function/methods are not available in my template files (because they are bound to the component class only). I have to create an alias of these functions in my component in order to use them. Is there a better way to do this?</p>