title: ionic 2 call function from another controller
body: <p>I need to <strong>call</strong> <code>function</code> in <strong>another controller</strong> in <code>ionic 2</code>,  it is possible?</p>
  
  <p>below my code and i want to call <code>loadPeople</code> in tab controller.</p>
  
  <p><strong>home.ts</strong></p>
  
  <pre><code>import { Component } from '@angular/core';
  
  import { NavController } from 'ionic-angular';
  import {PeopleService} from '../../providers/people-service/people-service';
  @Component({
    selector: 'page-home',
    templateUrl: 'home.html'
  })
  export class HomePage {
  
    constructor(public navCtrl: NavController,public peopleService: PeopleService) {
     this.loadPeople();
    }
  
   loadPeople(){
    this.peopleService.load()
    .then(data =&gt; {
    this.people = data;
    });
   }
  
  }
  </code></pre>
  
  <p><strong>tabs.ts</strong></p>
  
  <pre><code>import { Component } from '@angular/core';
  
  import { HomePage } from '../home/home';
  import { AboutPage } from '../about/about';
  import { ContactPage } from '../contact/contact';
  
  @Component({
    templateUrl: 'tabs.html'
  })
  export class TabsPage {
    // this tells the tabs component which Pages
    // should be each tab's root Page
    tab1Root: any = HomePage;
    tab2Root: any = AboutPage;
    tab3Root: any = ContactPage;
  
    constructor() {
  
    }
  }
  </code></pre>
  
  <p>in <strong>tabs.ts</strong> i want to call <code>loadPeople</code> function on <strong>tab selected</strong> , how i can do this ?</p>