Dependency Management Got Awesome
CommonJS and AMD Compliant dependency loader for modern web apps
Inject.createContext
0.7.x
Inject.createContext();
If you need to manage multiple instances of Inject, such as scenarios where you would want to manage multiple base URLs, Inject.createContext
allows you to create a standalone instance of Inject. This new version can receive a completely different set of rules, module root, and any other Inject configuration setting.
By default, all Inject instances will share the same URL cache, but this can be overriden by setting a new localstorage key via Inject.setCacheKey().
- CommonJS Interface
- AMD Interface
- The Inject API
- Inject.addContentRule
- Inject.addFetchRule
- Inject.addFileRule
- Inject.addModuleRule
- Inject.addPackage
- Inject.createContext
- Inject.disableAMD
- Inject.disableSourceUrls
- Inject.disableSuffixes
- Inject.enableAMD
- Inject.enableSourceUrls
- Inject.enableSuffixes
- Inject.reset
- Inject.setCacheKey
- Inject.setCrossDomain
- Inject.setExpires
- Inject.setModuleRoot
- require.run
- How To and Tutorials