Skip to content

Instantly share code, notes, and snippets.

require(
["modA", "modB"],
function (modA, modB) {
// do something with modA and modB
// when they are fully loaded
}
);
define(
[
'depA',
'depB',
'depC'
],
function (depA, depB, depC) {
var myModule = {};
// build your module here
myModule.foo = depA.getFoo();