8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b5d85d commit 49d8373Copy full SHA for 49d8373
samples/app/217.js
@@ -0,0 +1,35 @@
1
+const Vue = require('./nativescript-vue')
2
+
3
+Vue.config.debug = true
4
+Vue.config.silent = false
5
6
+const CustomComponent = {
7
+ template: `
8
+ <Button :text="text" @tap="$emit('tap')"/>
9
+ `,
10
+ name: 'CustomComponent',
11
+ props: ['text']
12
+}
13
14
+new Vue({
15
+ data() {
16
+ return {
17
+ normal: false,
18
+ custom: false
19
+ }
20
+ },
21
22
+ <Frame>
23
+ <Page>
24
+ <ActionBar title="Issue #217"/>
25
+ <StackLayout>
26
+ <Button :text="'Normal Button: ' + normal " @tap="normal = !normal"/>
27
+ <CustomComponent :text="'Custom Button: ' + custom" @tap="custom = !custom"/>
28
+ </StackLayout>
29
+ </Page>
30
+ </Frame>
31
32
+ components: {
33
+ CustomComponent
34
35
+}).$start()
0 commit comments