Skip to content

Instantly share code, notes, and snippets.

@scturtle scturtle/index.html
Last active Jun 5, 2019

What would you like to do?
simple vue template with element-ui
<!DOCTYPE html>
<meta charset="utf-8">
<title>Welcome to Vue</title>
<script src=""></script>
<script src=""></script>
<script src=""></script>
<link href="" rel=stylesheet>
<div id="app" style='text-align: center'>
<h1>{{ greeting }}</h1>
<el-button type="primary" @click="hello">click me</el-button>
var app = new Vue({
el: '#app',
data: {
greeting: 'Welcome to your Vue.js app!',
methods: {
hello: function() {
this.$message({message: 'hello'})
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.