Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Let the dependence list of modules support module objects. #5895

Open
@Neppord

Description

@Neppord

Now we need to do this:

var m = angular.module("m", [])
var app = angular.module("app", ["m"])

--or--

var m = angular.module("m", [])
var app = angular.module("app", [m.name])

when i think this should be suported:

var m = angular.module("m", [])
var app = angular.module("app", [m])

this would make the gap between AMD modules and NG modules shorter.

imagine:

define(["angular"], function (ng) {
  return  ng.module('m', []);
});

define(["angular", "m"], function (ng, m) {
  return  ng.module('app', [m]);
});

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions