Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

app.js vs main.js? Best practices?

User_IPNT8Apr 6 2017 — edited Apr 7 2017

Hi All,

I recently downloaded the "Work Better" 3.0 JET app and have been tinkering with it to try and add some custom items and soak in as much info as possible.

In the past i have seen other sample apps use a file called appController.js and main.js. This WorkBetter app uses main.js and app.js although the app.js is empty for the most part with no login.

What are the use cases for both files? When should you be using app.js? Is appController.js not used anymore in newer apps? Is there a standard structure that should be followed?

Comments
Post Details
Added on Apr 6 2017
3 comments
1,178 views