<ons-page class="center">
<h1>My First Page</h1>
<ons-button
ng-click="ons.navigator.pushPage('secondPage.html')">
Push My second Page
</ons-button>
</ons-page>
</ons-navigator>
<ons-page class="center">
<ons-navigator-toolbar
title="firstpage"
right-button-icon="fa fa-lg fa-angle-right"
on-right-button-click="ons.navigator.pushPage('firstpage.html')">
</ons-navigator-toolbar>
</ons-page>
Here ng-click is invokes the ons.navigator.pushPage method which Takes the link of the next page as parameter. It will navigate between the secondPage.html and firstpage.html
0 Comment(s)