Category "vue.js"

user info is not loading in vue component after login

I am using localstorage to save user info after a successful login. Then I want to put a v-if condition to filter whether the user is logged in or not. But the

How to create reusable toastService with primeVue toast?

I want to know if there's a way to create a reusable scritp/class/service with primevue toast function calls, in such a way that I don't need to call the primev

How do I update the items async in a b-table from Bootstrap-Vue reusing the items provider function?

I am using Bootstrap-Vue v2.0.0-rc.11 and I just cannot get my head around how to update the table content. I am sure it is trivial. I am pulling my content fr

Why does the numbering not work for some uses of v-data-table

The behavior is, I click the next-page chevron and it loads the correct data from the database and goes to the next page, but it does not update the pagination

Set dynamic class depending of parameter received

I'm new using Vuejs and I have a component that I want to set height value only if I send a parameter in props So, my class is something like this: <input

Vite recognizes link with sass on npm run build, but not on npm run dev

I am using a <link> tag to import a SASS/SCSS in the Vite/VueJS 3 index file: <link rel="stylesheet" type="sass" href="/src/assets/test.scss"> The

How do you call methods in vue3-carousel

Very new to using vue, I just got simple question on how I could access the API supplied by vue3-carousel according to the docs: https://ismail9k.github.io/vue3

is vue-storefront support (nuxtjs with typescript)?

I am trying to use @storefront-ui/nuxt inside a nuxtjs (with typescript) project. but this error show for me Could not find a declaration file for module '@st

Vue.js rendering issues with safari

I have a portfolio website written using Vue and Laravel that renders out project thumbnails with v-for. This works completely fine on every browser apart from

Vuejs image src dynamic load doesn't work

I just started using Vue.js and Vue CLI and i'm facing an issue, i don't understand why i can't set the image dynamically from the scope but i can do it writing

HMR tls issues with Visual Studio 2022 Vue template

I am using the Microsoft Vue tutorial to create a solution with separate frontend and backend projects. I am using the default configuration that enables tls an

Unresolved dependencies rollup

I'm doing import file from 'file.json in a Vue component, but have a challenge when I run npm run build to bundle it with Rollup. It throws this error below an

@typescript-eslint/naming-convention workaround for Vue components

We have this rule enabled: https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/naming-convention.md#allowed-selec

Undefined prop in child component

I have a parent component containing three child components. The first child component is a form. On a submit event it passes data to both the second and third

Vue js: module store is not defined

in my Vue js project i got the error said * ./store in ./src/main.js and i couldn't figure out what is the problem, i use store in my app.vue and it's now worki

Nuxt js <nuxt-link /> authentication

I have a route in nuxt that has to be accessible only by logged in users: /dashboard/secret. In /dashboard page I have a link like this: <nuxt-link to="/dash

Login with Google: How to programmatically open prompt for user consent and get the CredentialResponse on success

I am trying to trigger the Prompt for User Consent to open on clicking a custom html button rather than the Login iframe button rendered by Google. I am using S

How to align a label with radio button on same line in Bootstrap Vue

I want to have the label inlined with its radio buttons: <b-form-group label="Zobrazit"> <b-form-radio-group id="radio-group-2" v-model="absoluteVal

How to integrate Tailwindcss into a VUE CLI 3 project's web component?

Here is what I have: A VUE ClI 3 Project with lots of components and stuff going on. What I need: Is a way to reuse this project and to include it on my clie

Laravel SPA (Vue) Authentication with cookie or token?

the more I read about Laravel Spa (Vue) authentication, the more I ask myself about the "best way" to authenticate with Sanctum. Official Laravel documentation