i have used following code
<ion-header>
<ion-navbar>
<button ion-button menuToggle>
<ion-icon name="menu"></ion-icon>
</button>
<ion-title>
<span>{{ title }}</span>
</ion-title>
</ion-navbar>
</ion-header>
<button class="action-button getstarted" ion-button clear small (click)="goToFeed(id)">Already Purchased</button>
Button click action
//Goto feed page with arg
goToFeed(post: any) {
this.nav.push(FeedPage, {
postId:post
});
}
when click from back button,the button click does not trigger as first time,please any idea