All Questions
16 questions
1
vote
2
answers
116
views
VueJS doesn't show data on a component but shows on console
I have two pages - Books and Book. I am trying to show some data on my Book page after clicking the single item from the Books page.
I have managed to fetch the JSON file which lists all the items on ...
0
votes
2
answers
215
views
Switching route in Vue Router causes data to duplicate
I have a Vue component that lists maintenance requests from the database.
<template>
<div>
{{ maintenance_requests }}
</div>
</template>
<script>
import { ...
0
votes
1
answer
136
views
Navigate through nested JSON-Data on click
Situation
I have complex JSON-data that I want to filter and rearrange. My data is a deeply nested collection of projects. Each project has task_lists, which contain tasks.
So the structure of my JSON-...
0
votes
1
answer
812
views
Vue render error on page reload and direct url
I'm new to Vue so this may well be a simple fix.
I've been following a tutorial on vueschool https://vueschool.io/courses/vue-router-for-everyone
Using the same concept but with my own data. However, ...
0
votes
0
answers
358
views
Vue.js dynamic OctoberCMS menu with JSON data?
I'd like to know how is it possible with vue.js to have a router with dynamic routes, instead of static ones, to render a menu based on the October Static Menu items and Pages ?
Thanks for help.
In ...
0
votes
1
answer
429
views
Vue Router not working properly and adds a #
I have a main app page component with a search bar. The Search results that come back is in cards And I am looking to set up a "Click here to view more detail" that would be placed in each card. And ...
0
votes
2
answers
1k
views
Vue Router - Populate details view with json from home view
In my Vue app I have a home view looping through posts from an api
http://jsonplaceholder.typicode.com/posts/
Using Axios is my index.js file
import axios from 'axios'
export default {
...
0
votes
2
answers
893
views
How Can I import json data in Vue Js with axios
My JSON Data is like this which was earlier saved in js file of vue & was accessing it from there
I want my html v-for: condition to work as it was working fine earlier
I tried the method in ...
3
votes
4
answers
7k
views
How to dynamically change content of component with JSON?
I am creating my design portfolio using Vue CLI 3. The architecture of my website is very simple. I have a home page, about page, work page, and several individual project pages:
Home
About
Work
...
0
votes
1
answer
639
views
<router-link> and JSON questions using Vue.js and Vue Router
I am creating my design portfolio using Vue CLI 3. I am using <router-view> and <router-link> to navigate to my different components. The architecture of my website is very simple. I have ...
1
vote
1
answer
1k
views
How to check an specific user detail component using the user ID with vue-router from json file?
I have a Home.vue component which outputs a users list from user.json file. I created a router to link each user to userProfile.vue component where we will see the user details depending on the user ...
-2
votes
1
answer
764
views
Vue Router - build from JSON
I'm quite new to Vue.js. I'm used to vanilla JavaScript.
I need to be able to generate route paths from a JSON file.
How can I achieve it?
EDIT
For example, say this is my JSON:
[
{
"name": "...
0
votes
1
answer
1k
views
How to arrange the json data?
This is how i get the json data
"wrk_hours": [{"opens_at": "09:00:00", "closes_at": "23:00:00", "day": "Tuesday"}, {"opens_at": "09:00:00", "closes_at": "23:00:00", "day": "Wednesday"}, {"opens_at": "...
1
vote
1
answer
536
views
Vue-router components when using one data set
I'm using Vue.js as well as the usual setup that comes with it (vue-router etc). I'm having a problem, using one global data set (JSON output of all projects on a site), to return the data for an ...
1
vote
1
answer
203
views
Why Vue Router (0.7.13) does not match sub routes?
If I make this:
'/sales': {
component: NotFound,
subRoutes: {
'/': {
component: NotFound
},
'/report': {
name: 'sales.report',
component: SalesReport
...
1
vote
2
answers
2k
views
Vue v-links in JSON data
I am relatively new to Vue, so forgive me if this is obvious (or obviously impossible).
I have a set of JSON data (fetched from a RESTful API via vue-resource):
{content: "This is content. <a ...