title: Trigger input file click in Ionic 4 after page change
body: <p>I want to trigger/open a file input coming from another page in Ionic 4.</p>
  
  <p>In page 1 I have a button to go to a modal, in page modal I want to automatically trigger the <code>&lt;input file&gt;</code> dialog</p>
  
  <p>Component</p>
  
  <pre><code>ionViewWillEnter() {
      document.getElementById('file').click(); // Tried with this one 1st, this only works in Internet Explorer / Edge
      this.fileInput.nativeElement.click();    // And also this with @ViewChild
  }
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>&lt;input type="file" name="file" #file id="file" (change)="fileChange($event)" required&gt;
  </code></pre>