Vue.js polling using setInterval()

I came up with an easy way to repeat a function in Vue.js.