title: Calling a function in AngularJS service from the same service but within $watchcollection
body: <p>this is a follow up question to this topic:
  <a href="https://stackoverflow.com/questions/19842669/calling-a-function-in-angularjs-service-from-the-same-service/20052641#20052641">Calling a function in AngularJS service from the same service?</a></p>
  
  <p>I realized too late I should open a new question instead asking it there (sorry for that)</p>
  
  <p>I want to do the following:  calling a function within a service function with the additional difficulty the call is within $watchCollection. It looks something like this: </p>
  
  <p>return {</p>
  
  <pre><code>myFunc1: function(param) {
  
  },
  
  myFunc2: function(scope,param) {
  
      scope.$watchCollection(param,function(v) {
  
        return foo + this.myFunc1(param)// do some stuff with the first function 
  
      }       
  }
  </code></pre>
  
  <p>}
  Because of function(v) { you are now in another function within the function and <code>this</code> is no longer the service but the <code>window</code>.</p>
  
  <p>how can I get access to this myFunc1 within the myFunc2 $watchCollection parameter function? </p>
  
  <p>thanks in advance</p>