Navigate to a page with page ID.
var uActions = require('u-actions');
var Action = uActions.Action;
new Action('go to testing page',goToTestingPage).register();
function goToTestingPage(){
uActions.navigate.showPage(uPages.get('testing page')._id);
}
The id of the page that will be navigated to.
Navigate to a page with Page name.
var uActions = require('u-actions');
var Action = uActions.Action;
new Action('go back to the landing page',goBackToLanding).register();
function goBackToLanding(){
uActions.navigate.showPageByName('Landing page',uPages.PageTransition.FADE,'auto');
}
The name of the page to navigate to.
Defaults to "auto", but can force transition to run "forward" or "backward".
Navigate to a page with Page name, but without adding to navigation history.
The name of the page to navigate to.
Defaults to "auto", but can force transition to run "forward" or "backward".
Navigate back to the previous page.