Skip to content

Tag: nuxt.js

how to access “this” in props validator

I’m working on a project using nuxt.js, I’m injecting a function in the context of the application as recommended in the official documentation https://nuxtjs.org/guide/plugins/#inject-in-root-amp-context but when I try to call the function inside a props validation I get an error /plugins/check-p…

Iterating over keys instead of values Vue app

I’m trying to select the values for three keys from my api with axios. Each time I make a request I’m displaying the values four times for each key. I dropped a key from my data models and I re tested. When I did that my request displayed three times instead of four. Meaning I’m iterating ov…

How to Run a Python Script from a Nuxt.js SPA?

I am currently working on a Nuxt.JS SPA. One of the feature is uploading, downloading, and deleting files from a cloud storage. I’ve already successfully done so using Google’s Firebase products and API because google has it in Node.JS. Now I have to change the storage to a Ceph storage. The issue…

How to make Nuxt global object?

I want to create custom object that could be available globally in every place (plugins, middleware, component’s created/computed/mounted methods) I could access global object with context property (custom plugin, custom router middleware … ), but how to access it in component’s created() ? …

How can I create a custom loading indicator in Nuxt.js?

Inside this page (https://nuxtjs.org/api/configuration-loading-indicator#custom-indicators) says that I can create a custom loading indicator but not says how. Somebody can help me – how to create and set this into to nuxt.config? Answer Here is a collection of default loading indicators in Nuxt.js sour…

Using tawk.to with Nuxt/Vue Application

Does anyone know how to use tawk.to in a Nuxt application? I created a file “tawk.js” on my plugin folder with the following code: And I put it on nuxt.config.js as well: It didn’t work. It does show some compiled errors: Answer You could try to use a vue wrapper for tawk. vue-tawk