registerModule with dependencies
问题 I'm building an app with MEAN.JS and I'm trying to use a controller from another module. I've found that I can do this with dependency injection: angular.module(‘MyModule’, [‘Dependency’]); But the way modules are created in MEAN.JS is: ApplicationConfiguration.registerModule('MyModule'); And I can't just pass a second parameter to registerModule . So, how should I do this? Do I have to use both methods? Am I doing it wrong? Example I want to add a new model: Campaign . Campaigns are created