I'm working on a website that will have multiple pages, each containing tables. To streamline this process, I wanted to create a table component. However, I haven't added any data to the tables yet because I need to manipulate it using JavaScript.
My plan was to push each row object into the data property of my Vue Component after manipulating it with JavaScript, and then use v-for in the HTML to populate the table. But I can't seem to find any examples of pushing data into Vue components. Am I missing something?
If I can't push data directly into the components, does that mean I have to push it into the parent VM instead? And would that require creating a new data property for each instance of the table..?
I'm struggling to see how to connect Vue with the output from JavaScript in the bigger picture. Any advice or suggestions would be greatly appreciated.