[Vuejs]-VueJS โ€“ Show an empty v-html tag with a variable

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? ""?
}

Leave a comment