title: How to call parent function from callback function in angular 2?
body: <p>Here is a class</p>
  
  <pre><code>export class ChatDetailPage {
  
  constructor(){
  
  }
  
  funcA(){
       var options = {
          onSubmit: function (text) {
          //i want to be able to access funcB from here 
          this.funcB(text)
            },
  this.nativeKeyboard.showMessenger(options)
  }
  
  funcB(text){
    alert (text);
  }
  
  }
  </code></pre>
  
  <p>Here in this case how can i call funcB from onsubmit callback function in Anular 2 or Ionic 3. </p>
  
  <p>Thanks in advance.</p>