You need an ons-navigator element to implement a stack navigation to your app. You can find an example in the documentation ons-navigator
In most of my apps i use a tabbar as main navigation and the stack navigation to push/pop sub-pages. To do so i set the ons-navigator element in my index and use the tabbar as page:
<ons-navigator id="navigator" page="tabbar.html"></ons-navigator>
Now you can use a querySelector to access the navigator and handle your stack management. Here is an example of pushing a page to your stack:
document.querySelector('#navigator').pushPage('yoursubpage.html', {data: {title: 'subpage Title', content: 'subpage content'}});
In the documentation is shown how you can set an “init”-eventListener to get the pushed data. In my example the “title” and the “content” i want to set on the page. Hope this helps…