How to store view navigate history in router history

I need to store navigating page history in router history. how to store that could anyone explain it. I am unable understand from the doc.

F7 stores the history if you enable it in your app.js as:

var app = new Framework7({

stackPages: true

}

You can access the history writing
app.views.main.router.history

and you can delete it calling the following method in

pageAfterIn: function(e,page){

    page.router.clearPreviousHistory();

}