Skip to content

Instantly share code, notes, and snippets.

@ricogoh
Last active October 18, 2016 06:10
Show Gist options
  • Save ricogoh/7a20d0c6a6b7890cadc709d9b4afdb77 to your computer and use it in GitHub Desktop.
Save ricogoh/7a20d0c6a6b7890cadc709d9b4afdb77 to your computer and use it in GitHub Desktop.
Tryout VueJS
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Tryout VueJS">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
</head>
<body>
<div id="app">
{{ message }}
<br>
{{ list | json }}
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.16/vue.js"></script>
<script>
var app = new Vue({
el: '#app',
data: {
message: 'Hello Vue!',
list: ['one', 'two', 'three', 'four', 'five', 'six']
}
})
</script>
<script id="jsbin-javascript">
console.log("try vuejs...");
</script>
<script id="jsbin-source-javascript" type="text/javascript">console.log("try vuejs...");</script></body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment