Skip to content

Commit 39b6b05

Browse files
committed
refactor: add frames to sample
1 parent 5ed4204 commit 39b6b05

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

samples/app/app-with-pages.js

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
const Vue = require('./nativescript-vue')
22

3+
Vue.config.debug = true
4+
Vue.config.silent = false
5+
36
const App = {
47
template: `
5-
<StackLayout>
6-
<Button text="Open page" @tap="openPage" />
7-
</StackLayout>
8+
<Frame ref="frame">
9+
<Page>
10+
<StackLayout>
11+
<Button text="Open page" @tap="openPage" />
12+
</StackLayout>
13+
</Page>
14+
</Frame>
815
`,
916

1017
methods: {
@@ -16,11 +23,13 @@ const App = {
1623

1724
const DetailsPage = {
1825
template: `
19-
<StackLayout>
20-
<Label :text="'Details ' + Math.random()" />
21-
<Button text="another" @tap="openDetails" />
22-
<Button text="back" @tap="goBack" />
23-
</StackLayout>
26+
<Page>
27+
<StackLayout>
28+
<Label :text="'Details ' + Math.random()" />
29+
<Button text="another" @tap="openDetails" />
30+
<Button text="back" @tap="goBack" />
31+
</StackLayout>
32+
</Page>
2433
`,
2534

2635
methods: {

0 commit comments

Comments
 (0)