mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
15 lines
322 B
Markdown
15 lines
322 B
Markdown
Use the frame in the following way:
|
|
|
|
### To navigate to the starting page of the application
|
|
```javascript
|
|
// put this in the bootstrap.js
|
|
var app = require("application");
|
|
var frameModule = require("ui/frame");
|
|
|
|
app.onLaunch = function(context) {
|
|
var frame = new frameModule.Frame();
|
|
frame.navigate("testPage");
|
|
}
|
|
```
|
|
|