
- 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>
Discover why this course teaches StimulusJS 2.0.0 through bite-sized, plug-and-play projects you can add to your education, including the value and class API introduced in December 2020.
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.
Architect an accordion feature with Stimulus, using a single trigger to toggle details and rotate the icon, and apply the class API to adjust height via scrollHeight.
Build an accordion component with stimulus 2.0 by creating an accordion controller, toggle method, and details that animate using max-height and scrollHeight, including icon rotation.
Master StimulusJS 2.0.0's value API to build a counter app with two buttons that increment and decrement a display value initialized to zero.
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 architecture with StimulusJS by wiring an input range to a display target, updating the value on change, and using event targets to access the input 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.
Architect a snack bar feature using stimulus jars, triggering an action on a controller by target and a class to show the animation.
Learn to implement a snackbar with a snack bar controller and show action, toggling visibility to visible and auto hiding after three seconds at the page bottom.
Architect a TodoApp with StimulusJS, wiring a form submission to add items to the list. Use a controller to toggle states and remove items with a cross button.
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 and control a modal using stimulus by declaring a modal controller, wiring open and close actions to targets, and using currentTarget versus target for reliable interaction.
Learn to build a Pomodoro app by combining a slider and a countdown timer, wiring input changes to the timer display via the timer and slider controllers.
Explore a Pomodoro app walkthrough that wires a slider and timer to sync input values, convert minutes to milliseconds, manage intervals, and prefix controllers for precise targeting.
Architect and implement the scroll indicator architecture by wiring a progress bar to scrollTop, scrollHeight, and clientHeight, computing progress as scrollTop divided by (scrollHeight minus clientHeight).
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.
Architect a slideshow app with StimulusJS, implementing next/prev controls, dot navigation, and auto-advance via set interval using a horizontal flex layout and offset left scrolling.
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.
Implement a slideshow with dot indicators, toggle active class based on index, and automate slide progression with setInterval, resetting on user interactions via next/previous clicks.
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