Skip to content

Instantly share code, notes, and snippets.



Last active Jun 9, 2018
What would you like to do?
The default App.vue created by vue-cli for a new webpack-based project
<div id="app">
<img src="./assets/logo.png">
<div v-show="showMessage">{{message}}</div>
<div v-show="items.length > 0">I like</div>
<li v-for="(item, index) in items" v-bind:key="index">{{item}}</li>
export default {
name: 'App',
data() {
return {
showMessage: true,
message: 'Hello, World!',
items: ['Cake', 'Coding'],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment