diff --git a/samples/app/555.js b/samples/app/555.js new file mode 100644 index 00000000..0dd490f0 --- /dev/null +++ b/samples/app/555.js @@ -0,0 +1,35 @@ +const Vue = require('nativescript-vue') + +Vue.config.debug = true +Vue.config.silent = false + +new Vue({ + data: { + foo: false + }, + template: ` + + + + + + + + + `, + mounted() { + // this dialog is not shown because when the Vue mounted event + // is fired NS has not loaded all the UI components yet + // so for being able to use it change the tag to: + // instead of using the mounted event + this.greet() + }, + methods: { + greet() { + alert('Hello!').then(() => { + console.log('Alert dialog closed.') + }) + } + } +}).$start()