-
-
Save dutradotdev/6f5f7d46cca99eac297eedc66adf50cd to your computer and use it in GitHub Desktop.
AMD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define('meuModulo', ['lodash'], function(_) { | |
// código do módulo | |
return { | |
... | |
}; | |
}); | |
// os argumentos do módulo devem estar na mesma ordem do array de dependências | |
define('meuModulo', ['lodash', 'facebook'], function(_, fb) { | |
// código do módulo | |
return { | |
... | |
}; | |
}); | |
define(function() { | |
// código do módulo | |
return { | |
... | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment