Vue.js開発入門 > Chapter 1 Vue.jsって何
Vue.jsの基本的な使い方
#code(html){{{
!DOCTYPE html>
html>
head>
<meta charset="UTF-8"> <title>Vue.js sample</title> <script src="https://cdn.jsdelivr.net/npm/vue@2.5.17/dist/vue.js"></script>/head>
body>
<div id="app"> <p> {{myText}} </p> </div>
<script> new Vue({ el: "#app", data: { myText: 'Hello, world!' } }) </script>
/body>
/html>
}}}
Vue.jsで作るWebアプリの基本骨格は、こんなパーツで構成されているんですね。
Vue.jsの基本的な使い方はシンプルで、特に複雑なルールではないと思いました。