[Vuejs]-Vue.js Dynamic Input Value Bindings

0👍

Convert your slug into a data attribute:

data() {
  return {
    slug: product.title.replace(/\s+/g, '').toLowerCase();
  };
}

Doing this you won’t have to change anything in your markup.

Leave a comment