title: On page loads trigger input click Angular 13
body: <p><strong>ionic info</strong></p>
  <pre><code>Ionic:
  
     Ionic CLI                     : 6.19.1 (C:\Users\eight\AppData\Roaming\npm\node_modules\@ionic\cli)
     Ionic Framework               : @ionic/angular 6.1.7
     @angular-devkit/build-angular : 13.2.6
     @angular-devkit/schematics    : 13.2.6
     @angular/cli                  : 13.2.6
     @ionic/angular-toolkit        : 6.1.0
  
  Capacitor:
  
     Capacitor CLI      : 3.5.1
     @capacitor/android : 3.5.1
     @capacitor/core    : 3.5.1
     @capacitor/ios     : not installed
  
  Cordova:
  
     Cordova CLI       : not installed
     Cordova Platforms : not available
     Cordova Plugins   : not available
  
  Utility:
  
     cordova-res : 0.15.4
     native-run  : 1.6.0
  
  System:
  
     Android SDK Tools : 26.1.1 (C:\Users\eight\AppData\Local\Android\Sdk)
     NodeJS            : v16.14.2 (C:\Program Files\nodejs\node.exe)
     npm               : 8.10.0
     OS                : Windows 10
  </code></pre>
  <p><strong>HTML</strong></p>
  <pre><code>&lt;ion-input placeholder=&quot;Search&quot; id=&quot;searchProduct&quot; #searchProduct clear-input=&quot;true&quot; inputmode=&quot;search&quot; value=&quot;Cleanser&quot; autocomplete=&quot;off&quot; class=&quot;fw-bold&quot;&gt;&lt;/ion-input&gt;
  
  </code></pre>
  <p><strong>.page.ts</strong></p>
  <pre><code>import { Component, OnInit } from '@angular/core';
  import { ModalController } from '@ionic/angular';
  
  @Component({
    selector: 'app-search-product',
    templateUrl: './search-product.page.html',
    styleUrls: ['./search-product.page.scss'],
  })
  export class SearchProductPage implements OnInit {
  
    constructor( private modalController: ModalController) { }  
  
    ngOnInit() {}
    async closeModel() {
      await this.modalController.dismiss(close);
    }
    
  
  }
  
  </code></pre>
  <p><strong>Scenario</strong></p>
  <p>let me tell you a scenario,
  In home.html: there is a search button,
  on click, it is redirecting to searchProduct.html
  I want that input field should be triggered.</p>
  <p>It can be done by ngafterviewinit?</p>
  <p>Solution, please.</p>