<table> <row-component></row-component> <row-component></row-component> </table>
<row-component></row-component> <row-component></row-component> <table></table>
Using this approach, how would you get rails data into a component?
Eg. In "Using VueJS for Nested Forms in Rails: Part 1" you get a reference to the form div element and then parse the element dataset. But with this approach the element could be anything and how would you get a reference to the element in a SFC?
Chris, thank you for amazing tutorial. I have one question, you didnt cover in this video.
How to deal with ajax loaded content?
Lets say we have remote link, wich JS response dynamically creates modal box (fancybox form example) with html content.
The problem is that if that modal's html content includes "components" tags, they are not initialized as (converted to) working Vuejs components. How to make Vuejs work with Rails ajax functionality?
Join 20,000+ developers who get early access to new screencasts, articles, guides, updates, and more.