Last active
June 9, 2018 16:53
-
-
Save praneetloke/d4b30f3a238cb7ce3bceb7fbfe399b0c to your computer and use it in GitHub Desktop.
The default App.vue created by vue-cli for a new webpack-based project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div id="app"> | |
<img src="./assets/logo.png"> | |
<div v-show="showMessage">{{message}}</div> | |
<div v-show="items.length > 0">I like</div> | |
<ul> | |
<li v-for="(item, index) in items" v-bind:key="index">{{item}}</li> | |
</ul> | |
<router-view/> | |
</div> | |
</template> | |
<script> | |
export default { | |
name: 'App', | |
data() { | |
return { | |
showMessage: true, | |
message: 'Hello, World!', | |
items: ['Cake', 'Coding'], | |
}; | |
} | |
}; | |
</script> | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment