Skip to content

Tag: vue.js

Replace space with new line in vue js

I am trying to replace the spaces between the name to new line in vuejs but I am not able to achieve it. Please help me find where I going wrong. Right now the names are showing as but I want it to display as Below is the code. Answer You could do this entirely in CSS with word-spacing set

name of object within payload javascript

I have this payload. I’m trying to use Vue to set the values in the state using I realise one of my payload.val need to be the name of the value and not the name itself. How can I reference this correctly? My state looks like this: Edit: Spelling Answer As per the Vue documentation (Vue.set Documentatio…

Currency Converter function in Vue3

I’m trying to implement a convert() function in a Vue3 project. I have a functions.js file to store some “global” basic functions I’m calling the function inside a component like this But it doesn’t work properly, I only get a pending Promise result… Can anybody tell me wha…

using V-for loop with filtered data set

I am filling values in a table using the code below in my ‘castData’ I have 15 items but I only want to return the ones that include “Sinto” Is there a way of applying this filter. I’ve tried appending .includes(“Sinto”) after the first castData with no luck. Answer O…