0๐
If I understand you correctly, you can bind things (dynamically) to the component like so:
v-bind={content: computed_content}" . //on the component
...
computed_content: function() {
if (this.one_post.posts.length < 1) {
return this.one_post.id + this.one_post.content
}
return --> what? false? null? ""?
}
Source:stackexchange.com