I’d say that’s a perfectly reasonable thing to do. In fact, we’re adding first class APIs for it in Stimulus 1.2: Coming in Stimulus 1.2: The Classes and Values APIs
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Bloated html / wish for a "*" event
|
4 | 1403 | March 22, 2018 | |
Advice re: tradeoff between controller scope vs markup bloat
|
2 | 349 | December 5, 2022 | |
Problem: Reading Initial State from the DOM
|
0 | 881 | March 12, 2019 | |
How to access data- elements from within a controller's children?
|
1 | 1900 | November 1, 2018 | |
Manipulation of DOM
|
0 | 1019 | May 31, 2018 |