Ex: main.js or app.js
You can export your .muse as HTML and then tweak or insert any external code or file.
Hello Ankush, first of all thank you for replying.
I would like to do this directly from the Muse panel, using the assets option, but as it is a controller.js it needs to be at the end of the code. So it renders the controller within Preview In Browser.
Right, that's the issue.
Therefore in your case exporting it via HTML will be the best option.
Hello, after much study, I have arranged a way to do this in an integrated way within Muse, I will leave here the step-by-step guide for anyone who wants to know.
First> Upload .js in 'Files to Upload in menu Muse
Second> include Jquery Injector (Widget) from MuseResources (MUSE RESOURCES™ | jQuery Injector ) and paste the code below:
Please moderators, put this message as the correct answer.
Thank you all for the support
Woah, Thank you so much for this superb workaround and it will be really very helpful for our other user's as well.