File tree Expand file tree Collapse file tree 3 files changed +27
-25
lines changed Expand file tree Collapse file tree 3 files changed +27
-25
lines changed Original file line number Diff line number Diff line change
1
+ <template >
2
+ <Page >
3
+ <ActionBar class =" action-bar" title =" Details Page" >
4
+ <ActionItem text =" Action" ></ActionItem >
5
+ </ActionBar >
6
+ <StackLayout >
7
+ <Label :text =" 'Details ' + Math.random()" />
8
+ <Button text =" another" @tap =" openDetails" />
9
+ <Button text =" back" @tap =" goBack" />
10
+ </StackLayout >
11
+ </Page >
12<
8000
/code>
+ </template >
13
+
14
+ <script >
15
+ const page = {
16
+ methods: {
17
+ openDetails () {
18
+ this .$navigateTo (page)
19
+ }
20
+ }
21
+ }
22
+ export default page ;
23
+ </script >
Original file line number Diff line number Diff line change 9
9
</template >
10
10
11
11
<script >
12
- const DetailsPage = {
13
- template: `
14
- <Page>
15
- <ActionBar class="action-bar" title="Details Page">
16
- <ActionItem text="Action"></ActionItem>
17
- </ActionBar>
18
- <StackLayout>
19
- <Label :text="'Details ' + Math.random()" />
20
- <Button text="another" @tap="openDetails" />
21
- <Button text="back" @tap="goBack" />
22
- </StackLayout>
23
- </Page>
24
- ` ,
25
- methods: {
26
- openDetails () {
27
- this .$navigateTo (DetailsPage)
28
- },
29
- goBack () {
30
- this .$navigateBack ()
31
- }
32
- }
33
- }
12
+ import Details from ' ./Details'
34
13
35
14
export default {
36
15
components: [
37
- DetailsPage ,
16
+ Details ,
38
17
],
39
18
methods: {
40
19
openPage () {
41
- this .$navigateTo (DetailsPage )
20
+ this .$navigateTo (Details )
42
21
}
43
22
}
44
23
}
Original file line number Diff line number Diff line change 1
1
{
2
- "main" : " app-with-shared-actionbar .js" ,
2
+ "main" : " app-to-check-hmr .js" ,
3
3
"name" : " nativescript-template-tutorial" ,
4
4
"version" : " 1.0.1"
5
5
}
You can’t perform that action at this time.
0 commit comments