title: Trigger a watch function whenever any variable is changed in Vue.js
body: <p>Is there a way I can trigger a Vue.js function whenever a variable within the app changed?</p>
  
  <pre class="lang-js prettyprint-override"><code>var vm = new Vue({
    el: '#demo',
    data: {
      variable1: 'Foo',
      variable2: 'Bar',
      .....
      .....
      variablen: 'Foo Bar'
    },
    watch: {
      &lt;&lt;any variable&gt;&gt;: function(){
        console.log('any of these variables changed');
      }
    }
  })
  </code></pre>