Skip to content

Instantly share code, notes, and snippets.

@praneetloke

praneetloke/App.vue

Last active Jun 9, 2018
Embed
What would you like to do?
The default App.vue created by vue-cli for a new webpack-based project
<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
You can’t perform that action at this time.