LoginSignup
0
0

More than 3 years have passed since last update.

属性のデータバインド v-bind テキストボックスに値を表示する。

Posted at

javascript

var app = new Vue({
  el: '#app',
  data: {
    message: 'hello world'
  }
})

html

<div id='app'>
  <input type="text" v-bind:value="message">
</div>

<script src="https://cdn.jsdelivr.net/npm/vue@2.5.16"></script>

表示結果

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0