title: cant emit multiple value to another component Angular
body: <p>i have to pass two values to my parent component</p>
  <pre class="lang-js prettyprint-override"><code>@Output() onDatePicked = new EventEmitter();
  
  public pickDate(date: any, date1: any): void {
      this.onDatePicked.emit({ date, date1 });
  }
  </code></pre>
  <p>in my parent component:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;app-child (onDatePicked)=&quot;print($event)&quot;&gt;&lt;/app-child&gt;
  </code></pre>
  <p>and in the parent controller i want log them:</p>
  <pre class="lang-js prettyprint-override"><code>public print(e) {
      console.log(e.date);
      console.log(e.date1);
  }
  </code></pre>
  <p>it logs undefined</p>