Help me with the buttons


#1

I do not know how to get the buttons to point to some page inside the app,

I have a button and I wanted it to take me straight to another page, please help me :frowning:


#2

The basics are here


#3

write down click event in button in html<button ion-button block clear (click)=“pageChange()”>Goto . .Page
then write this function in related ts file
public pageChange() {
this.nav.push(YourPageName);
}
here nav is object of NavController defined in your constructer.
done!!! @renansmar


#4

is it ionic version 1 or the latest? You need to learn angular routing…

Ionic 1:

$state.go(‘page_url_name’);

Ionic Latest:

this.nav.push(YourPageName);