Angular 单击输入时重定向到另一页

Angular 单击输入时重定向到另一页,angular,ionic2,ionic3,Angular,Ionic2,Ionic3,我用的是Ionic3。一旦用户单击输入,我想从模式表单重定向到另一个页面,我不确定这是否可行 .html: <ion-item> <ion-label class="labels" stacked>Country</ion-label> <ion-input type="text" formControlName="country" [(ngModel)]="query"></ion-input> </ion-item&

我用的是Ionic3。一旦用户单击输入,我想从模式表单重定向到另一个页面,我不确定这是否可行

.html:

 <ion-item>
  <ion-label class="labels" stacked>Country</ion-label>
  <ion-input type="text" formControlName="country" [(ngModel)]="query"></ion-input>
</ion-item>

国家
我已经尝试将
(单击)=“goToCountrySearch()”
放在
离子输入中,但它不起作用。有没有办法做到这一点!thanx

尝试使用
(输入)
而不是
(单击)
。键入内容时,将触发函数
goToCountrySearch()

<ion-item>
  <ion-label class="labels" stacked>Country</ion-label>
  <ion-input type="text" formControlName="country" [(ngModel)]="query" (input)="goToCountrySearch()"></ion-input>
</ion-item>

国家
尝试使用
(输入)
而不是
(单击)
。键入内容时,将触发函数
goToCountrySearch()

<ion-item>
  <ion-label class="labels" stacked>Country</ion-label>
  <ion-input type="text" formControlName="country" [(ngModel)]="query" (input)="goToCountrySearch()"></ion-input>
</ion-item>

国家

能否显示goToCountrySearch()的代码?没有看到单击,可能是您可以尝试聚焦@wannadream
this.viewCtrl.disease()
this.appCtrl.getRootNav().push('CountrySearch')
它位于
goToCountrySearch()
@wannadream中,您的意思是在输出事件焦点触发时推送它!如何做?(focus)=“goToCountrySearch($event)”能否显示您的goToCountrySearch()代码?没有看到单击,可能是您可以尝试focus@wannadream
this.viewCtrl.disease()
this.appCtrl.getRootNav().push('CountrySearch')
它位于
goToCountrySearch()
@wannadream中,您的意思是在输出事件焦点触发时推送它!如何做到?(焦点)=“goToCountrySearch($event)”