1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Filter Various Collections Using Stimulus Targets

    javascriptJavaScript

    In this lesson, we'll add various inputs that allow a user to filter a collection of data using different sets of data to search through.

    We'll take advantage of Stimulus targets to make it simple to find which collection the user wants to search for. Stimulus also provides a nice way to get all targets of a certain name as an array. We'll take a look at how that makes life easy when need to iterate over a collection of DOM nodes.