Questions tagged [vue.js]

Vue.js is an open-source JavaScript framework for building interactive web interfaces. It creates data-driven user interfaces with a simple and flexible API.

Filter by
Sorted by
Tagged with
5 votes
2 answers
575 views

Display properties of a country, from online service

I'm currently learning Vue JS and I made a simple app that pulls information from API and displays facts about a country given a 2-letter country code. I'm looking for feedback on how to improve the ...
  • 51
4 votes
2 answers
54 views

Vue.js - Sierpinski Triangle

Below is a Vue app I wrote to draw a Sierpinski Triangle given n iterations, which can be incremented/decremented via a HTML ...
  • 509
2 votes
0 answers
17 views

"Github contribution"-clone made with VueJs. Any logic improvements?

I took a shoot at writing a Github contribution clone using Vuej, tippy.js and tailwindcss. Githubs looks like this: My working clone looks like this: Its not an exact look-a-like but im getting ...
  • 223
2 votes
2 answers
197 views

Infinite content loop carousel

I made this pretty simple content loop-carousel component, but the code seems too "Iffy" but Im not sure how I could make it better. I tried to use the Switch expression, which makes it a ...
  • 133
0 votes
0 answers
95 views

SignalR multiple connection hub callbacks on SPA

Using VueJS plugin feature I created an NotificationHub, I have a requirement where I need to call hub multiple times on the same Vue screen. But this causes a lot of callbacks. so I am just ...
  • 361
0 votes
0 answers
103 views

Appending a Vue component with D3

I'm currently working with the D3 library and Vue and I'm wondering what is the best way to append a Vue component using D3. The below snippet of code works perfectly, I'm just wondering if there is a ...
  • 111
0 votes
1 answer
52 views

How to refactor switch statement with convoluted if chain within vuex module

So this is my scenario. In my Websocket Vuex module I'm dealing with all the data coming from the server. I can get different kinds of notifications from the server and according to the type of ...
  • 109
0 votes
1 answer
34 views

Navigating a javascript object (previous and next)

I am using Vue3 together with Collect.js. I have an object records that can have n number of items. On my website, I display ...
  • 247
1 vote
1 answer
131 views

Chaining backend calls from VueJS method using Axios

This is the first ever bit of front-end code I have ever written, I have tried to adapt the existing call that is there to the backend using axios, so I check on of the response object value using the ...
  • 497
-4 votes
1 answer
82 views

Simple Vue calculator [closed]

I made conditional calculator in Vue js but I need help to make it more efficient. https://jsfiddle.net/wbrx9cyp/1/ example of code: ...
  • 1
1 vote
1 answer
91 views

Show progress bar for different states

I have this working code which shows the progress bar based on different states ("not-started", "progressing" and "done"). Each state will have its own class. I notice it ...
4 votes
3 answers
104 views

Destructuring with map and assigning to a constant

I don't know exactly what to name this, but I was refactoring a code snippet and looking at this constant users I thought I'd do this destructuring: Before: ...
  • 401
1 vote
2 answers
434 views

Vue 3 audio player

I have been working on an audio player with Vue 3 and the Napster API. ...
2 votes
2 answers
51 views

group computed properties in vue component

I have the following vue component which all works fine ...
  • 631
0 votes
1 answer
80 views

Good approach to simple state management in vuejs for multiple instances [closed]

I am learning Vue.JS and I'm creating a simple todo app, where each list has a unique id. I am iterating through all of the list to create a Vue instance: ...
  • 117

15 30 50 per page
1
2 3 4 5
8