Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Enable late binding of sub-module names #7

Open
nikku opened this issue Nov 11, 2013 · 0 comments
Open

Enable late binding of sub-module names #7

nikku opened this issue Nov 11, 2013 · 0 comments

Comments

@nikku
Copy link
Owner

nikku commented Nov 11, 2013

It should not be neccessary to specify the names of required modules if a AMD path is specified as a module defining location.

If a dependent AngularJS module is defined at a AMD path, its name should be captured and used to specify the AngularJS module dependency.

Consider the following example:

/other-module.js:

ngDefine('other.module', function(module) {
  // module definition
});

Defines a named AngularJS module other.module.

module.js:

ngDefine('some.plugin', [
  'module:/other-module'
], function(module) {
});

Should define a module equivalent to angular.module('some.plugin', ['other.module']) after the AMD path /other-module has been resolved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant