How are the JS files bound to the ERB files? That ...
# support
j
How are the JS files bound to the ERB files? That is, how does
backend/app/view/spree/admin/orders/line_items.html.erb
know to render
backend/app/assets/javascripts/spree/backend/orders/cart.js
as the table content?
e
Can’t check the specifics right now, but old school jquery files usually rely on the JS using some kind of selector. Stimulus and other frameworks use other means, like custom attributes. Please let me know if this answers your question 👍