title: ion date input with automatic submit upon selection
body: <p>I'm new to ionic and I have this project that auto submits &amp; shows reports when a date is selected. The problem is when I select a date the data isn't being submitted. Here is my .ts code.</p>
  <pre><code> async showRepo(item_date: Date) {
   this.db.repoProduct(item_date).then((_) =&gt; 
  {
    console.log(_);
    this.product = {};
     });
    }
  </code></pre>
  <p>And here is my .html code</p>
  <pre><code> &lt;ion-item&gt;
    &lt;ion-input
      type=&quot;date&quot;
      (ionInput)='showRepo(item_date)'
    &gt;&lt;/ion-input&gt;
   &lt;/ion-item&gt;
  </code></pre>
  <p>Thanks in advance.</p>