Dears, I’ve been struggling with this for hours, even following basics tutorials. I’m trying to display some data in Json in my Vue 3 project, when a data is in an array, using a loop I get everything I need, but if it isn’t in an array, I get an error or the data are stick together. I’ve created a
Tag: vue.js
Can we use expose method to return other reactive variables and computed properties like methods in vue 3?
I am changing my application from vue 2 to vue 3. By using composition api,i have changed my previous render function in that setup hook. After checking some documentation,I got to know that i can expose methods by using context.expose({}). Now my questions are: How to replace created method in vue 3 composition api? (As we know, setup hook occurs
How can I hide Card element with v-if in Vue.js
How do I hide the Card when I select the third element of the select box? Can Anybody help me about this problem. I’m so new developer I’m so sorry. Answer Try like following snippet :
npm build a vue app and run it on a raspberry Pi
I am creating a Vue app with my roommate and we want to deploy it on our raspberry Pi. Is there a possibility to npm build our final app on our PC and just start the server on the Pi without having to build the app on the Raspberry? And if so, how can we start the app on the
I want to add two time limit conditions to the timepicker in Vuetify
What we want to achieve Is it possible to add two conditions to allowd-minutes in Vuetify? I have already added a condition to not show the time before now, but I would like to add another condition, I would like to be able to select m minutes only every 15 minutes. Is there a good solution? Code What we tried
Vuex Action committing mutation
I have a vue app where a user can randomize a title and subtitle OR edit the fields using a custom input component. When a user chooses to edit, I’d like to send the updated title and subtitle from the input component to the store to mutate the title and subtitle state when clicking the save button after filling out
How to make this table sort by this particular column when it initially loads?
I have a bootstrap-vue table that looks like this; Here’s the code; When this table is initially loaded up, I want to specify that the table is sorted according to Person age column in descending order. I am using bootstrap-vue and Vue v2.6 Answer You can use these two attributes in <b-table> : Demo : —- OR —— You can
Repeat the same behaviour on Ant Design Editable Table for React on Ant Design Vue 3?
I’m using Ant Design in Vue 3 and I have a table that I’m able to edit all the cells. The problem is: I want to automatically close the editable cell if the user opens a new one to edit. While I was researching, I noticed that this behaviour happens on Ant Design for React accordingly to the documentation. My
Using Axios instead of fetch for http get requests with Vue App
The following vue app should get some data from a firebase instance using the fetch method and display the data on the page. UserExperiences.vue SurveyResult.vue The data renders on the webpage correctly on the webpage using the fetch method. Is there a way to use axios.get instead? I’ve tried using the mounted vue property and it gets the data to
Not able to find the locator which is inside a component in Cypress
I am trying to find the dropdown-arrow locator. I have used the cypress cmd – cy.get(‘.dropdown-arrow’).click() but it gives element not found error. Here is my code Answer From comments, shadow DOM is present. You can access elements within it either by adding this to cypress.json or in the test