Skip to content

Tag: vue.js

access method outside vue component

i am new in vuejs. i have created comment feature similar with here, but due to certain circumstances i have to improvise it. i use vue component but it couldn’t access method inside my vue. if user has already post comment, any user may be able to reply that particular comment. however, i received vue …

Component inside Component – VueJS

I am having a hard time to understand this, so I have a component which is already complied which is a grid, now when I click on a button a modal pops-up and display another grid inside the modal at this point my code looks like this for the modal pop-up Now, the grid is a vue component which was

Observe to some event from another component in Vue

I have two components: These components have the following interface: First component is a button. I will see a modal dialog when I click on it. The modal contains an Ajax form: Second component is a table. You already saw it on the first picture So, I would like to rerender the table component after sending …

How to make Nuxt global object?

I want to create custom object that could be available globally in every place (plugins, middleware, component’s created/computed/mounted methods) I could access global object with context property (custom plugin, custom router middleware … ), but how to access it in component’s created() ? …

How to save data in Vue instance

The question is quite simple, All I want is to get the data after the AJAX post saved in Vue instace’s data. Here is my code: And after I trigger the getUserAcc(id) method,I try to verify the VMList.user value in browser console,and I get only the id.Seems like after the function is over the data is res…