Category : javascript

I have async calls inside forEach and after that there is Promise.all that does other api calls. However the issue is that somehow Promise.all is getting called before the calls inside the above forEach. products.forEach(async product => { if (product.brandId === ‘shoes’) { await this.products(true) … product.BrandData = { const { product } = await ..

Read more

I am using Vue, and I want to show three languages. English, Tagalog and Cebuano. Now I have the error Cannot translate the value of keypath ‘NavbarMobile.home’. Use the value of keypath as default. I checked if the plugin is working by console.log(this.$i18n.locale). And the result was "en". "en" is my default language, English. Is ..

Read more

I’m pretty new to js and having some trouble trying to get the img src next to a checkbox. The structure of the elements looks like this: ‘<input type="checkbox" class="myCheck" id="myCheck" data-s3="object"><!–…–><img src="’+object2hrefvirt(s3exp_config.Bucket, data)+’" width="100" height="100">’; Being object2hrefvirt(s3exp_config.Bucket, data) the image url. The goal is to get all the urls to download them in a ..

Read more