Using Data in Stimulus

Learn to use data with Stimulus in this lesson.

We'll cover the following

With async, await, and fetch in our toolbox, we can get our Stimulus controller to contact the server directly to get the information about which concerts are sold out.

Sold-out concerts controller

On the Rails side, I’d like to set this up as its own route by adding a new singular resource to the routes.rb file:

Get hands-on with 1400+ tech skills courses.