var app = new Vue({
el: '#app',
data: {
},
computed: {
reversedMessage: function () {
return this.title.split('').reverse().join('')
}
}
});
What if I want to manipulate some hbs expression with Vue computed properties?
In order to make it works, I have to insert title into data: {} instead of into JSON file as Fractal does.
Hi, consider this code (inspired by Vue doc: https://vuejs.org/v2/guide/computed.html#Basic-Example)
HTML
JS
What if I want to manipulate some hbs expression with Vue computed properties? In order to make it works, I have to insert
title
intodata: {}
instead of into JSON file as Fractal does.I hope I was clear
Any suggestions?