Created
November 16, 2019 07:13
-
-
Save tsukiyama-a5/dfcfb3165163cbb52f0dabb23100ba32 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<div id="app"> | |
<ul> | |
<li v-for='employee in employees'>{{employee.name}}:{{employee.age}}歳</li> | |
</ul> | |
</div> | |
<script src="https://jp.vuejs.org/js/vue.js"></script> | |
<script> | |
var app = new Vue({ | |
el: '#app', | |
data: { | |
employees: [ | |
{name: 'tsukiyama', age: 22}, | |
{name: 'murashima', age: 41}, | |
{name: 'endo', age: 49} | |
] | |
} | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment