
- What will you learn
- Basic History about StimulusJS
- What's StimulusJS
StimulusJS is the recommended framework by Basecamp to include JavaScript into Ruby on Rails. <Benefits of Stimulus> In this tutorial I'm going to share with you...<what to learn in this tutorial>
A Brief Introduction of StimulusJS
Understanding Controller of StimulusJS
Understanding Action of StimulusJS
Understanding Target of StimulusJS
Understanding Value of StimulusJS
Explore the StimulusJS Class API, introduced in December 2020, as an alternative to coding classes, using a data controller and class attribute to map identifiers and apply loading effects.
Learn to diagnose common errors in stimulus js 2.0.0, including static properties, target and value declarations, and data-controller prefixes. Debug with logging and seek help in Q&A when needed.
Architect the copy to clipboard feature in StimulusJS 2.0.0 by wiring actions, targets, and a controller to select input, copy text, and revert after a timeout.
Implement a copy to clipboard feature by wiring a target input and a click button to copy selected text to the clipboard, with a temporary visual state update.
Build dark/light mode with StimulusJS 2.0.0 by wiring a button to a global action, swapping icons from sun to moon, and updating styles based on a mood value.
Build a price slider with StimulusJS by wiring an input to a Slider controller. Update the display as the input value changes, using a simple architecture and event handling.
Master select all and deselect all in stimulus js 2.0.0 by building architecture with checkbox targets or a container approach, then loop through checkboxes to set their checked state.
Build a progress bar with StimulusJS 2.0.0, wiring a controller to update the bar width and percentage display, and manage start, reset, and interval-driven progress with proper interval clearing.
Build a countdown timer with stimulus, using start/stop controls, a big time input, and a one-second interval that updates the display via setInterval and clearInterval, with a timer controller.
Walk through building a countdown timer in stimulus js 2.0.0, wiring an input, start/stop controls, and a display that updates with milliseconds, seconds, and hours.
Build a todo app with StimulusJS 2.0.0 by wiring a form to add items and render list elements. Implement remove and toggle actions through a controller.
Architect a modal in StimulusJS by wiring open and close actions, including backdrop and button closures, using global event targets, and prevent inner clicks from closing while toggling display.
Build a reusable scroll indicator in StimulusJS 2.0.0 by connecting a progress bar to a scroll container and computing progress from visible height and total height.
Master stimulus js 2.0.0 by building a slideshow with slides, dots, and captions, using a slide show controller, index state, targets, and actions like previous, next, and set index.
Welcome to Mastering StimulusJS 2.0.0 by building 15+ projects! In this course, you're going to learn StimulusJS with its respective pillars - Controller, Action, Target, Value, & Class.
Stimulus is a JavaScript framework with modest ambitions. It doesn’t seek to take over your entire front-end—in fact, it’s not concerned with rendering HTML at all. Instead, it’s designed to augment your HTML with just enough behavior to make it shine. StimulusJS was released in Feb 2018 by Basecamp, and updated to Version 2.0.0 with the additional Value & Class API last December.
This course includes bite-size projects, which you can plug and play into your application. Besides, your time is being value and this course is specialised on StimulusJS. A starter project is prepared for you so that you won't have to worry about styling or HTML markup. Furthermore, this course follows 'Architect before Code' strategy, which I'll bring you through the thought process before writing and code. Value & Class will be covered in this course as well. Several quizzes are prepared for you to reinforce your understanding on the lesson taught.
The projects covered are:
1) Copy to Clipboard
2) Accordian
3) Counter App
4) Dark/Light mode
5) Price Slider
6) Select/De-select All
7) Progress Bar
8) Countdown Timer
9) Snackbar
10) Todo List
11) Typewriter Effect
12) Modal
13) Pomodoro App
14) Scroll Indicator
15) Slideshow