title: Why won't my click event in Vue.js fire?
body: <p>I'm trying to use Vue's <code>on-click</code> directive on a div but it does not fire as intended. When I click the <code>.demo</code> class nothing happens; I should get a 'test clicked' in the console. I don't see any errors in the console, so I don't know what am I doing wrong. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var app = new Vue({
    el: '#app',
    data: {
      title: 'This is the first vue app',
      name: 'ALRAZY',
      link: 'http://google.com',
      attachRed: false
    },
    methods: {
      changeLink: function() {
        this.link = 'http://apple.com'
      }
    }
  })</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>body {
    font-family: 'Trykker', 'Spectral SC', serif;
  }
  
  h1,h2,h3,h4,h5,h6 {
    font-family: 'Spectral SC', serif;
  }
  
  p {
    font-family: 'Trykker', serif;
  }
  
  .demo {
    width: 100px;
    height: 100px;
    background-color: grey;
    display: inline-block;
    margin: 10px;
  }
  
  .red {
    background: red;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" rel="stylesheet"/&gt;
  &lt;link href="https://fonts.googleapis.com/css?family=Spectral+SC:400,400i,500,500i,600|Trykker" rel="stylesheet" &gt;
  &lt;script src="https://unpkg.com/vue/dist/vue.js"&gt;&lt;/script&gt;
  &lt;div class="container"&gt;
    &lt;div class="row"&gt;
      &lt;div id="app"&gt;
        &lt;h1&gt;{{ title }} &lt;/h1&gt;
        &lt;input type="text" v-model="name" name=""&gt;
        &lt;p&gt; {{ name }}&lt;/p&gt;
        &lt;button onclick="changeLink" class="btn btn-danger btn-lg"&gt;click to change&lt;/button&gt;
        &lt;a :href="link" target="_blank"&gt;Link&lt;/a&gt;
        &lt;!-- style-vue --&gt;
        &lt;div class="demo" onclick="attachRed = !attachRed" :class="{red: attachRed}"&gt;&lt;/div&gt;
        &lt;p v-if="show"&gt;You can see me!!!&lt;/p&gt;
        &lt;p v-else&gt;Do You see me??&lt;/p&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>