Edit in JSFiddle

  new Vue({
    el: "#app",
    data: {a: 1, b: 2},
    computed: {
      c: function() {
        return this.a + this.b
      },
    },
  })
<div id='app'>
  {{a}} + {{b}} = {{c}}
</div>