// // # Frame // To perform navigation, you will need a reference to the topmost frame of the application. // ``` JavaScript import frameModule = require("ui/frame"); var topmost = frameModule.topmost(); // ``` // import labelModule = require("ui/label"); import pagesModule = require("ui/page"); export var test_DummyTestForSnippetOnly0 = function () { // // ### Navigating to a Module // ``` JavaScript topmost.navigate("details-page"); // ``` // } export var test_DummyTestForSnippetOnly1 = function () { // // ### Navigating with a Factory Function // ``` JavaScript var factoryFunc = function () { var label = new labelModule.Label(); label.text = "Hello, world!"; var page = new pagesModule.Page(); page.content = label; return page; }; topmost.navigate(factoryFunc); // ``` // } export var test_DummyTestForSnippetOnly2 = function () { // // ### Navigating with NavigationEntry // ``` JavaScript var navigationEntry = { moduleName: "details-page", context: { info: "something you want to pass to your page" }, animated: false }; topmost.navigate(navigationEntry); // ``` // } export var test_DummyTestForSnippetOnly3 = function () { // // ### Navigating Back // ``` JavaScript topmost.goBack(); // ``` // }