Just because Stimulus.js is designed to work with HTML over the wire doesn’t mean it can’t use JSON APIs when the need arises. In fact, it can perform just like Vue.js in pulling JSON from an API and placing the results on your page. Here is a tutorial that loads commit messages from Github, and renders themContinue reading “Loading and Templating JSON Responses in Stimulus.js”
Monthly Archives: January 2019
Subscribing to many channels in ActionCable
There are many times when logically it makes sense for a page to receive updates about many different items. Sometimes those items are similar, so many ActionCable channels can each listen for one item, or a single channel listen for many different items. Here is an example of using one ActionCable channel to subscribe toContinue reading “Subscribing to many channels in ActionCable”
Easy PWAs the Rails way
Progressive Web Apps, or PWAs, have a home in Rails. There are a few pieces to add to any app to make it a PWA. With a little configuration, an app will be installable in a browser, accessible offline, and in line with any other front end framework. PWAs? Progressive Web Apps are a typeContinue reading “Easy PWAs the Rails way”