title: Emitting variable from home.ts, need to catch it in popup.ts
body: <p>I am emitting a value from <code>home.ts</code> and I want to catch its value in <code>popup.ts</code> . Pasting below <code>home.ts</code> code and <code>popup.ts</code> code. What do I need to do at <code>popup.ts</code> to receive it ?</p>
  
  <p><code>home.ts</code> code:</p>
  
  <pre><code>import { Component,Output, EventEmitter } from '@angular/core';
  import { NavController, NavParams } from 'ionic-angular';
  import { PopoverController } from 'ionic-angular';
  import { PopoverPage } from './popup';
  
  
  @Component({
    selector: 'page-home',
    templateUrl: 'home.html'
  })
  export class HomePage {
  
    @Output() chatEvent = new EventEmitter();    // 1
  
    public bring_on_popup = "I am from home";
  
  
    constructor(public popoverCtrl: PopoverController,public navCtrl: NavController, public navParams: NavParams) {
  
      this.chatEvent.emit(this.bring_on_popup);
  ...
  </code></pre>
  
  <p><code>popup.ts</code> code</p>
  
  <pre><code>import { Component , OnInit, Input, EventEmitter} from '@angular/core';
  import { ViewController } from 'ionic-angular';
  import { IonicPage, NavController, NavParams, LoadingController } from 'ionic-angular';
  
  
  
  @Component({
      template: `
        &lt;ion-list&gt;
          &lt;ion-list-header&gt;Ionic&lt;/ion-list-header&gt;
          &lt;button ion-item (click)="close()"&gt;Learn Ionic&lt;/button&gt;
          &lt;button ion-item (click)="close()"&gt;Documentation&lt;/button&gt;
          &lt;button ion-item (click)="close()"&gt;Showcase&lt;/button&gt;
          &lt;button ion-item (click)="close()"&gt;GitHub Repo&lt;/button&gt;
        &lt;/ion-list&gt;
      `
    })
    export class PopoverPage {
      constructor(public viewCtrl: ViewController) {}
  
      close() {
          //  console.log(this.bring_on_popup);
        this.viewCtrl.dismiss();
      }
    }
  </code></pre>
  
  <p>I believe I am emitting in the right way, I just need to catch <strong>bring_on_popup</strong> variable inside popup.ts</p>