December 2017
Intermediate to advanced
282 pages
5h 54m
English
To set up RequireJS for managing application libraries, links, and script references in your Oracle JET application, you can perform the following steps:
<html> <head> <script data-main="js/main" src="js/require.js"></script> </head> <body> <h1>Require JS with Oracle JET </h1> </body> </html>
Here, the data-main attribute refers to the main.js dependency represented as js/main.
// +js/main.js require(["js/customers"], function(cust) { cust.createCustomers(); }); // +js/customers.js define(["js/orders"], ...Read now
Unlock full access