Thanks to visit codestin.com
Credit goes to github.com

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

Enable late binding of sub-module names #7

@nikku

Description

@nikku

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions