How to refactor Transmit-Demo to move page-specific-code away from app.js #4596
Unanswered
sourgrapesrpg
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I was going over RomainLanz's really helpful Transmit Demo, after I got it working I was struggling to refactor one part of it:
https://github.com/RomainLanz/transmit-demo/blob/main/resources/js/app.js
Is there an "AdonisJS/Edge" preferred way to move all of the code away from app.js so that it is tied closer to the view page (home.edge)?
I'd like to have all of the app.js code be either injected specifically for home.edge or embedded into the edge file itself. I'm still new to adonisjs so any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions