Require.js example expanded.
Helpers.js\moment.js included. Alogos are still BROKEN. I'm deploying them here for testing.
This commit is contained in:
@@ -16,5 +16,6 @@ requirejs.config({
|
||||
//Load array of modules (in this case 'app/module') into the variables (in this case module). "cs!" - means this file has to be parsed by cs plugin first.
|
||||
requirejs(['cs!app/module'], function (module) {
|
||||
//foo() is defined within module.coffee. We can use it within this callback.
|
||||
//Note that we are passing lowercase here. But will get UPPERCASE because we use parentModule within module.
|
||||
module.foo('Hello!')
|
||||
});
|
||||
Reference in New Issue
Block a user