diff --git a/app.js b/app.js index 7cfe4cf..5aae9a4 100644 --- a/app.js +++ b/app.js @@ -1,59 +1,18 @@ -const Vue = require('nativescript-vue/dist/index') - -Vue.component('image-viewer', { - props: ['imgSrc'], - - data() { - return { - img: '' - } - }, - - template: ` - - - - - - - - - `, - - mounted() { - this.img = this.imgSrc - } -}) +const Vue = require('nativescript-vue'); new Vue({ template: ` - - - - - - - - - - - - + + + + + + + + `, - data: { - textRed: false, - showTrick: false, - imgSrc: '~/images/apple.jpg' - }, - - methods: { - onTap() { - alert('Nice Tap!') - } + headingText: 'Welcome to NativeScript-Vue', + bodyText: 'This template contains a number of app samples that you can use as the starting point of your app. To experiment, try copying and pasting the code from app-with-list-view.js, app-with-router.js, app-with-tab-view.js, or app-with-vmodel.js into your app’s app.js file.' } -}).$start() \ No newline at end of file +}).$start(); \ No newline at end of file diff --git a/images/NativeScript-Vue.png b/images/NativeScript-Vue.png new file mode 100644 index 0000000..2ad8ed2 Binary files /dev/null and b/images/NativeScript-Vue.png differ diff --git a/package.json b/package.json index f967a49..875edd2 100644 --- a/package.json +++ b/package.json @@ -6,16 +6,11 @@ "license": "SEE LICENSE IN LICENSE", "dependencies": { "nativescript-theme-core": "~1.0.4", - "nativescript-vue": "^0.7.8", - "tns-core-modules": "^3.0.0", + "nativescript-vue": "^1.0.0", + "tns-core-modules": "^3.4.0", "vue-router": "^2.4.0" }, "devDependencies": { - "babel-traverse": "6.24.1", - "babel-types": "6.24.1", - "babylon": "6.16.1", - "lazy": "1.0.11", - "nativescript-dev-android-snapshot": "^0.*.*" }, "bugs": { "url": "https://github.com/tralves/nativescript-vue-template/issues"