title: How to call a custom function from html with angularjs?
body: <p>I'd like to define separate methods within my <code>js</code> controllers as follows:</p>
  
  <pre><code>    angular.module('test').controller('mycontroller', mycontroller);
      function mycontroller() {
          //do sth
      };
  
      function test(value) {
          console.log(value); //this is never written
      };
  </code></pre>
  
  <p>This way I'd have a clean structure and each method separated in its own block.</p>
  
  <p>But when I try to use it as follows, there is not output.</p>
  
  <pre><code>&lt;div ng-controller='mycontroller'&gt;
      {{test('printme')}}
  &lt;/div&gt;
  </code></pre>
  
  <p>Why?</p>