Skip to content

Instantly share code, notes, and snippets.

Last active Mar 27, 2021
What would you like to do?
<title>Vue.js Pet Store</title>
<script src=""></script>
<link rel="stylesheet" href=""
<div id="app" class="container-fluid">
<div class="row-fluid">
<h1 v-text="sitename"/>
<h3 v-text="siteDesc"/>
<h5 v-text="welcomeDesc"/>
<div class="row-fluid">
<input type="text" v-model="userName"/>
var myStore = new Vue({
el: "#app",
data: {
sitename: "Vue.js Pet Store",
siteDesc: "bswen tutorial for vue.js",
userName: ""
computed: {
welcomeDesc: function () {
return this.userName+ ", welcome to "+ this.sitename+", "+this.siteDesc;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment