title: Call a method from the Vue.js component
body: <p>I'm newbie to Vue.js</p>
  
  <p>I just want to call a method from a component:</p>
  
  <pre><code>var app = new Vue({
      el: '#app',
      components: {
          message: {
              props: ['createdat'],
              template: '
              &lt;div&gt;
                {{ postedOnA(createdat) }}
                {{ postedOnB(createdat) }}
              &lt;/div&gt;',
          },
          methods: {
              postedOnA: function (createdat) {
                  var date = new Date(createdat);
                  return date.getHours() + ' ' + date.getMinutes();
              }
          }
      },
      methods: {
          postedOnB: function(createdat) {
              var date = new Date(createdat);
              return date.getHours() + ' ' + date.getMinutes();
          }
      }
  })
  </code></pre>
  
  <p>I have also tried to call a component method, but that is not working too</p>
  
  <p>Thanks</p>