8000
File tree Expand file tree Collapse file tree 2 files changed +5
-13
lines changed Expand file tree Collapse file tree 2 files changed +5
-13
lines changed Original file line number Diff line number Diff line change 1
1
const Vue = require ( './nativescript-vue' )
2
2
const VueRouter = require ( 'vue-router' )
3
- const application = require ( 'tns-core-modules/application' )
4
3
5
4
Vue . config . silent = false
6
5
Vue . config . debug = true
@@ -10,7 +9,9 @@ const Home = {
10
9
template : `
11
10
<Page>
12
11
<StackLayout>
13
- <Button text="Go to details page 1..." @tap="$router.push('/detail/1')"/>
12
+ <Button text="Go to details page 1..." @tap="$router.push('/detail/1', {
13
+ transition: 'slide'
14
+ })"/>
14
15
<Button text="Go to details page 2..." @tap="$router.push('/detail/2')"/>
15
16
</StackLayout>
16
17
</Page>
@@ -59,20 +60,11 @@ const router = new VueRouter({
59
60
60
61
router . push ( '/' )
61
62
62
- application . android &&
63
- application . android . on (
64
- application . AndroidApplication . activityBackPressedEvent ,
65
- event => {
66
- event . cancel = true
67
- router . go ( - 1 )
68
- }
69
- )
70
-
71
63
new Vue ( {
72
64
router,
73
65
template : `
74
66
<GridLayout rows="*, 40">
75
- <Frame row="0">
67
+ <Frame row="0" transition="fade" >
76
68
<router-view />
77
69
</Frame>
78
70
Original file line number Diff line number Diff line change 15
15
"dependencies" : {
16
16
"nativescript-gradient" : " ^2.0.1" ,
17
17
"nativescript-pager" : " ^7.1.3" ,
18
- "nativescript-ui-sidedrawer" : " ^4.1.1" ,
19
18
"nativescript-theme-core" : " ^1.0.4" ,
19
+ "nativescript-ui-sidedrawer" : " ^4.1.1" ,
20
20
"tns-core-modules" : " 4.0.0" ,
21
21
"vue-router" : " ^3.0.1" ,
22
22
"vuex" : " ^3.0.1"
You can’t perform that action at this time.
0 commit comments