Skip to content

Commit 53ee639

Browse files
committed
1 parent b809f0f commit 53ee639

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

samples/app/127.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
const Vue = require('./nativescript-vue')
2+
3+
Vue.config.silent = false
4+
5+
new Vue({
6+
data: {
7+
foo: false
8+
},
9+
template: `
10+
<Frame>
11+
<Page>
12+
<ActionBar title="Issue #127" />
13+
14+
<StackLayout>
15+
<Label v-if="foo" text="Enable" @tap="foo = false"/>
16+
<Label v-if="!foo" text="Disable" @tap="foo = true"/>
17+
</StackLayout>
18+
</Page>
19+
</Frame>
20+
`,
21+
created() {
22+
console.log(Vue.compile(this.$options.template).render.toString())
23+
}
24+
}).$start()

0 commit comments

Comments
 (0)