title: How can I connect buttons and select with its options in Vue JS
body: <p>I got stuck, guys. Maybe there is simple solution to my problem. Please, help me.
  Here is the issue.</p>
  
  <p>I have 5 possible options to choose from. Let's say <strong><em>[a, b, c, d, e]</em></strong></p>
  
  <p>My layout is <em>two buttons</em> and <em>select dropdown menu</em>.
  In other words, I give two possibilities to user: </p>
  
  <p>Either click on one of two buttons or select from list. </p>
  
  <p>So template is kinda</p>
  
  <pre><code>&lt;button&gt; A &lt;button&gt;
  &lt;button&gt; B &lt;button&gt;
  &lt;select v-model="selected"&gt;
    &lt;option :value="i" v-for="i in list"&gt;i&lt;/option&gt;
  &lt;/select&gt; 
  </code></pre>
  
  <p>In my script I have</p>
  
  <pre><code>data () {
        return {
           list: ['c', 'd', 'e']
        }
      }
  </code></pre>
  
  <p>How can I combine these three elements into one. Can I somehow use v-model? Cause of now, I can get selected option from list. What should I do then. If I add <em>@click</em> event to buttons, what should they handle? </p>
  
  <p>I thought to make computed value, like checking if <code>selected</code> is not undefined or equal to <code>''</code>, then the option is <code>selected</code>. But in order to bind buttons clicked events, I should create methods to handle their state, like </p>
  
  <pre><code>data () {
        return {
           list: ['c', 'd', 'e'],
           a: false,
           b: false
        }
      },
  methods: {
    handleA () {
      this.a = true
      this.b = false     
    },
    handleB () {
      this.b = true
      this.a = false     
    }
  }
  </code></pre>
  
  <p>And then every click will change <code>false</code> to <code>true</code>, and besides there also needs to be a logic to keep only one <code>true</code> state: either for <code>a</code> (button A), <code>b</code> (button B) or <code>selected</code>. It feels too wrong to be true. In my opinion, I'm making things harder. There has to be an easy way.</p>