Remote Ruby cover image

Learning in Public | Alpine & Inertia

Remote Ruby

00:00

JavaScript Stimulus and JSONify - What's the Difference?

Stimulus allows you to define data on an element. It's not there in the initial page load right it gets initialized. You could actually use stimulus, but really power it from the markup. Britishtown has this method called JSONify. So all you have to do is take X dot data equals and then you use a erb helper liquid everJSONify and then your object. And then you instantly have like a template about lists of all your objects.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app