Skip to content

Tag: vue.js

Vue.js unexpected data and method behaviour

I have a Vue.js component with simple template and script file is When I click text, I get output I cannot figure out why this is happening. I would expect Any ideas? Answer The answer is quite simple really, an object is initialized only once, when it is assigned to a variable. If you assign this variable to…

undefined CryptoJS in vue

https://github.com/brix/crypto-js i have install cryptoJs using npm i crypto-js but how do i use it on my project ? when i write this code but it show an error said that CryptoJS is undefined here is my code this is the eror Answer At first, you have to run npm install crypto-js in Vue terminal. Then, you hav…

USe data from another object VueJs

i have quick question here. I have my object with value: Then have API object (API is working fine, fyi) I wanna do something like this (is not working of course): I had method for this, it worked, but I think it can be easier to do that. Thanks a lot for any help Answer You can use something like