Last active
August 29, 2015 13:56
-
-
Save pbouzakis/9140863 to your computer and use it in GitHub Desktop.
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
// requirejs aka "AMD" module | |
define(["./utils", "./userService"], function (utils, userService) { | |
// everthing in here is my module | |
}); | |
define(function (require) { | |
var utils = require("./utils"); | |
var userService = require("./userService"); | |
// everthing in here is my module | |
}); | |
// CommonJS module | |
var utils = require("./utils"); | |
var userService = require("./userService"); | |
// more awesome code :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment