Skip to content

Tag: vuejs2

Cannot set property ‘innerHTML’ of null”, Vue

I have two components for editing JSON objects. And i have a button that switches between these two. Here is the html code: //Javascript code Start value for showJsonEditor = true, showTextEditor = false gives me the error: Cannot set property ‘innerHTML’ of null”, Vue i tried setting the th…

Cannot call a function inside mounted()

I have a chat API that I’m connecting to a Vue.js project. When user goes to a chat room page, it sends an ajax request and then calls the function that fetches the whole chat history: but it fails with: TypeError: _this.fetchChatSessionHistory is not a function I understand that it might be defined at …

Vue filter array A by array B

I have a table with data from a rest API. The table has objects with unique ids and I have a group filter with unique group ids. The group id does not appear in the table, therefore I have to create an array which only contains the ids of the table objects. Every time the group changes the array will

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 …

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 …