Skip to content

Can’t get values past array[0] to translate properly

Okay, to start with I should mention this is a very small personal project, and I’ve only have a handful of coding classes several years ago now. I can figure out a lot of the (very) basics, but have a hard time troubleshooting. I’m in a little bit over my head here, and need a dumbed down solutio…

how to spy on window.location functions?

i need to cover my code with some unit tests and in one of then i have the following situation. app.tsx and in my test file i’m getting the followein error : Cannot assign to read only property ‘replace’ of object ‘[object Location]’ i’ve tried other aproachs like }); but i…

Typescript: object with classes as a values

Let’s say I want to build a proxy class from this question’s accepted answer. So I need to prepare some object which contains all the classes as values: I can’t get which type ClassEnumeration has in this case. I guess it will be something like Record<string, …?? > Which type has…

Vue3 – Ace Editor on v-model change

I am using Ace Editor with Vue3: It’s being initialized like this: Now, I want to automatically persist the value of currentRecord.prompt in my database on the backend. To do this, I was thinking of firing of a request to the backend every time the value of currentRecord.prompt was changed in the editor…

How to add data in an array of Vue.JS from html

Guys I am stuck on my assignment where I am not able to add data from html to the array of VUE.JS I have build this form now what I want is when user complete this form and press Add a new student button it supposed to add all the data inside Students array in vue.js but Idk how to