Category "vuejs2"

Vue: How to enable multi page in an existing SPA project?

I have a single page (SPA) application written in Vue. Now I need a separate page that should be available without being signed in. To me it seems like a need t

Vue: Failed to compile (Strings must use singlequote)

I've been working with Visual Studio Code for two days now. I try to build a Vue-Application. But always when I run the application by npm run serve, I get the

Vue select tag on change not firing when selecting the same option

I have a select tag that should trigger function when an option is selected. <select id="selector" class="form-control" @change="executeAction" v-model="sele

How to use router in vue composition api?

I defined a route in vue: /users/:userId Which point to UserComponent: <template> <div>{{username}}</div> </template> and I use

Using formula.js on vue.js

I am trying to use formulja.js in a Vue project. When I import it and try to use PPMT function I am getting this error. I can't define what the error is and how

how to pass screen.height & screen.width in vue test case | Jest Framework

I have used screen.height & screen.width for js operations. I can't able to pass the test case. (code coverage). I am using vue utils - Jest framework. belo

Apply global variable to Vuejs

I have a javascript variable which I want to pass globally to Vue components upon instantiation thus either each registered component has it as a property or it

How to switch Vue.js to production mode in Laravel?

Since Vue.js is comes already installed in Laravel, I'm not sure how to set it to production mode. When I launch my website I get the message in console: Y

How to separate script section of Vue file to another file?

A vue file in my project has become too big. I wanted to seperate its script section into a js file. In js file, I export the Vue object; export default new Vu

Vue.js - Remove specific component dynamically

I am trying to dynamically create/remove a Vue component. I have figured out how to dynamically add the component, but I am having some troubles with allowing t