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.
- [Vuejs]-Vue-js-modal resizable issue
- [Vuejs]-How to use Vue JS transition "inside" another transition?
Source:stackexchange.com