How to use the nativescript-vue/dist/index.setDocument function in nativescript-vue

To help you get started, we’ve selected a few nativescript-vue examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nativescript-vue / nativescript-vue / vue-sample / app / main-page.js View on Github external
function onReady(page) {

    const Vue = require('nativescript-vue/dist/index')
    Vue.setDocument(page)

    const vm = new Vue({
        name: 'root',

        template: `
        
            
                <button>TAP HERE</button>
                <button style="color: white; background-color: darkcyan;">TAP HERE</button>
                <label style="text-align: center; margin-top: 20; font-size: 40"></label>
                <button>Tap to see a trick!</button>
                
                <img style="height: 200;">