-
-
Save velopert/5ec31f9baf2d59b6f901c99e7ccd9778 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
// 새로운 뷰를 정의합니다 | |
var app = new Vue({ | |
el: '#app', // 어떤 엘리먼트에 적용을 할 지 정합니다 | |
// data 는 해당 뷰에서 사용할 정보를 지닙니다 | |
data: { | |
name: 'Vue', | |
feelsgood: 'https://imgh.us/feelsgood_1.jpg' | |
} | |
}); |
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"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div id="app"> | |
<h1>Hello, {{ name }}</h1> | |
<img v-bind:src="feelsgood"/> | |
</div> | |
<script src="https://unpkg.com/vue/dist/vue.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment