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
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
The basics are here
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
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);