title: Angularjs share functions inside service
body: <p>I am working with an angular app, where service are as declared as follows:</p>
  
  <pre class="lang-js prettyprint-override"><code>App.service("myService", function(){
    this.calculation1 = function(){
      var util = function(){
      }
      //doing somthing
    }
    this.calculation2 = function(){
  
      // how can I call util function here?
    }
  }
  </code></pre>
  
  <p>I want to use util function inside calculation2 method.</p>
  
  <p>How can I do that?</p>
  
  <p>Thanks in advance.</p>