Skip to main content

All Questions

-2 votes
2 answers
96 views

String's split method shows undefined [closed]

I am trying to get all characters starting from = inside url: let url = this.$route.query.item console.log(typeof(url)) // outputs string let status = url => url.split('=')[1] it shows ...
NewTech Lover's user avatar
0 votes
1 answer
60 views

Is it possible to set specific VueRouter props?

Working with VueRouter, I want to enable entrance to these URLs: category/apple category/banana category/pear Is it possible to limit a router parameter so certain strings? (banana, apple, pear)? I ...
wellhellothere's user avatar
0 votes
1 answer
233 views

Separate VueJS children routes

Here is my router.js code: const router = new Router({ routes: [ { path: '/login', name: 'login', component: LoginView, meta: { title: app.NAME + ' | ' + ...
Dill's user avatar
  • 327
0 votes
1 answer
794 views

VueJS Routing the same component not triggering OWL Carousel

Hello I'm facing this problem with re-evaluating the images rendered by VueJS into a Carousel plugin (OwlCarousel) while loading the same component with different variables the problem is when ...
Sletheren's user avatar
  • 2,486
0 votes
1 answer
42 views

Why can't I import * these Javascript Files?

I'm trying to import these files inside the perimeters folder basePerimeter.js byePerimeter.js secretPerimeter.js my import code: import * as perimeters from '../perimeters' basePerimeter.js import {...
Kay Singian's user avatar
  • 1,391
0 votes
2 answers
1k views

How to rerender a component in Vue

I have a sidebar consisted of three tabs: Home Users List When I click the 'Users' tab, Router will transition like this: this.$router.push('index/users') and then the Users component will be ...
xiaojie Luo's user avatar
2 votes
0 answers
683 views

Vue $route is not defined in App.vue

I'm trying to get the name of the current route in my App.vue but all I get it's a null response. In my App.vue: export default { created() { console.log(this.$route.name) } } In my ....
Artwo's user avatar
  • 21
1 vote
1 answer
4k views

[Vue warn]: Error in render function: "TypeError: Cannot read property 'matched' of undefined" [duplicate]

am trying to route using two routers for two pages, main.js and profile.js and two init files main and profile //for main pages import Vue from 'vue'; import App from './App'; import ...
Shiyas vp's user avatar
0 votes
2 answers
443 views

Can't Parse VueJS 2 hash as an empty string

I'm currently working on trying to determine if a hash is present in the url and I'm getting some odd results. The below code when run with a url such as http://localhost:8080/subscribers#test runs ...
li x's user avatar
  • 4,061
14 votes
4 answers
20k views

Vue 1.x/2.x: Get vue-router path url from a $route object

As we know, we can use vue-route to wrap some route paths. <!-- vue 1.x --> <a v-link="{name: 'route_name', params: {id: 1}}"></a> And in vue2: <!-- vue 2.x --> <router-...
Alfred Huang's user avatar
  • 18.3k
2 votes
2 answers
2k views

Vue2: How to specify the vue-router root component?

I was just upgraded to Vue2.0, and not so familiar with it. One change makes trouble for me, that the vue-router initialization [docs] is changed: In my case, the initialization code is changed as ...
Alfred Huang's user avatar
  • 18.3k