title: How do I call a function from within a nested function in typescript?
body: <p>I want to call the function <code>func2</code> from within sample function of function <code>func1</code>. Can someone suggest a way to achieve that?.</p>
  
  <pre><code>class A
  {
     public func1()
     {
       let sample = function()
                    {
                      //call func2... but how?
                    }
     }
     public func2()
     {
  
     }
   }
  </code></pre>
  
  <p>Thanks in Advance</p>