title: How to call a method from one component to another in angular
body: <p>I want to call a method in another component when the tab is clicked. The below function is called in the parent component of the tab and that is where I want the function call to happen:</p>
  <pre class="lang-js prettyprint-override"><code> updateactiveTab(activeTab: string) {
      console.log('activetab', activeTab)
      this.activetab = activeTab;
      if(this.activetab === 'Status') {
        console.log('I am in Status tab');
       //Call the method here
      }
  
    }
  </code></pre>
  <p>I get this error:</p>
  <blockquote>
  <p>Property 'getJobstatusdata' does not exist on type 'typeof JobStatusComponent'.</p>
  </blockquote>