Swipe not working in Tabs


#1

Hi,
I am trying to implement swipe in tabs, but when ever i run the app using “ionic serve” swipe doesn’t work,
but if i save something in code and the app rebuilds, then it starts working. Searched a lot regarding this issue, but no luck yet. Following is my code :-

tab1.html

<ion-content padding (swipe)="swipe($event)">

 <button ion-button on-tap="onTap('top')" >Tabs at Top</button>
<br>
<br>
<button ion-button on-tap="onTap('bottom')">Tabs at Bottom</button><br>
<br>

<p>{{today | date:'full'}}</p> 

</ion-content>

tab1.ts

swipe(event)
  {
if (event.direction === 2) {
  this.navCtrl.parent.select(1);
}
}