Skip to content
Advertisement

Tag: vue.js

Vue + Typescript – Import errors with class based decorators

I’m trying to set up Vue 3 with TypeScript and class-based components. However, I keep getting on error on importing the Component decorator the Vue constructor: mycode.vue: Answer You might be trying to use the example from the official vue-class-component docs, but that’s currently for the 7x version, which can only be used with Vue 2. Vue 3 requires vue-class-component

Keycloak with nuxt-auth module

I’m using this auth-module with Keycloak. My configuration in nuxt.config.js: The connection is OK. When I click on the “connect” button, I am redirected to my Keycloak environment. Once authenticated by Keycloak, I am redirected to my nuxt.js application. However, the problem is that my store is empty. Do you have any ideas about what causes this problem? loggedIn: is

Vue js application object syntax

I just started to learn the vue.js and came across this syntax. I want to know what this syntax is called. Can anyone explain if data and mounted are properties of object or methods because never seen this type of syntax of object literal in js. Usually they have : between value and key. Answer It’s a short way writing

Vue – apply transition to menu element

I have this scss code in my vue app. I’m trying to make a smooth transition from left for a menu when the isVisible property is set to true but I’m not able to apply the transition I’ve defined and the menu will instantly appear. I’ve done a reserach here on SO and I’ve found some interesting questions but all

Advertisement