Questions tagged [vuejs-routing]

Vue Router is the official router for Vue.js. It deeply integrates with Vue.js core to make building Single Page Applications with Vue.js a breeze.

Vue Router is the official router for Vue.js. It deeply integrates with Vue.js core to make building Single Page Applications with Vue.js a breeze. Features include:

  1. Nested route/view mapping
  2. Modular, component-based router configuration
  3. Route params, query, wildcards
  4. View transition effects powered by Vue.js' transition system
  5. Fine-grained navigation control
  6. Links with automatic active CSS classes
  7. HTML5 history mode or hash mode, with auto-fallback in IE9
  8. Customizable Scroll Behavior
13 questions
4
votes
1 answer

How to deploy a Vue.JS MPA (Multi Page Application)

I created a multipage application using vue.js with vue.config.js method i developed it with no problems i created a production build i can access home page however i cannot access other pages like about us, portfolio etc. What could be the issue??…
Being MR.G
  • 91
  • 1
  • 2
  • 8
2
votes
1 answer

Secure logging in to a Vue.js SPA

I'm pretty new to Vue.js, I followed lots of tutorials, but one thing bothers me. Let's say I'm building a SPA. The user can log in and then access data using a RESTful API. So the first step would be to send my login information (username,…
Dusan
  • 3,284
  • 6
  • 25
  • 46
1
vote
0 answers

How to open xlsx file from vuejs2 page?

In laravel/vuejs2 site with "vue-router": "^3 I need to open xlsx file with command : fileurl = ‘http://localhost/tmp/test-item.xlsx’; window.open(fileurl,'_blank'); from javascript. But not found event catcher is triggered in…
Petro Gromovo
  • 1,755
  • 5
  • 33
  • 91
1
vote
2 answers

vuejs router children in children

I want to show child component in component with vue js, but I couldn't figure out how to do it. Could you help. When I click profile from the menu, "http://localhost:3000/admin/profile" logs in. When I click on the sub menus in the…
Tuana
  • 25
  • 5
0
votes
1 answer

Getting "The '+' operator cannot be applied to type 'symbol'." when trying to concatenate $route.name

Trying to get the current route name within a template, to pass it on to a router link (i.e. passing the current route to the login view, so I can return users there after they authenticate). It works as expected, but when doing a type check I…
0
votes
1 answer

router-link VueJS can't link to an element in the same page

I'm trying to developp a sidebar of a documentation who it links to elements on th same page
  • 0
    votes
    1 answer

    Is there any way to have dynamic routes/components in vuejs router?

    Hi beautiful Vuejs developers out there! I have a little problem with routing many Vue components/pages dynamically. In this scenario I am using nested routes to have a couple of routes for my layout components and hundreds of child routes for my…
    user16853634
    0
    votes
    3 answers

    how to add class and icon in route link Vuejs

    I have a route-link vuejs : view I want to add class : class="btn btn-primary" and icon in that route-link. Please give me ideas. Thanks
    json
    • 67
    • 4
    • 15
    0
    votes
    2 answers

    I don't understand why a div tag would stop being visible once I try to bind it to a v-for directive in my code

    The issue is with the div tag with class log, I am trying to populate the text with data gotten from the api response. As I try to include the v-for directive ,the whole div disappears from the browser and there is no single error thrown by the…
    0
    votes
    2 answers

    VueJS router configuration not enabled

    In my VueJS project, I have configured the routing in a file "router.js". import VueRouter from 'vue-router' import personDetails from './components/component.vue' Vue.use(VueRouter) export default new VueRouter({ mode : 'history', base :…
    Shankar
    • 2,625
    • 3
    • 25
    • 49
    0
    votes
    2 answers

    My vuejs navigation guard not working as expected

    i am using vuex for statemanagement this is my vuex code , here my logic is if token is exist in local storage then it will set isAuthenticated to true so it will be easy to check against routes.but some how its not working. import axios from…
    ProBot
    • 133
    • 2
    • 12
    0
    votes
    1 answer

    VueJS router does not load the component

    Really confused why this isnt working. I am just elaborating on the example that you get from adding router from the CLI. I just want to add a new route call common and i created a Common.vue file and copied the HTML from About.vue into it. Must be…
    Travis
    • 2,185
    • 7
    • 27
    • 42
    -1
    votes
    4 answers

    v-else is getting rendered first instead v-if in Vue JS

    I have an HTML element like below
    original content
    default content
    initial value of showOriginalContent is false and from mounted method am calling an another method where i will make the…
    Sumith Chalil
    • 348
    • 3
    • 22