LoginSignup
1
0

More than 5 years have passed since last update.

Vue.jsで階層を深くした selectedを選択・データを保持したい

Last updated at Posted at 2018-12-09

selectedで作った連想配列のデータを保持したいとき。

index.html

<select v-model="selected.piyo">

</select>
vue.js

var vue = new Vue({
    data: {
        selected: {
                piyo: ''
        }
    }
})

Vue.js
フォーム入力バインディング

1
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
1
0