Ask a Question
Back to All

Predefined modules with dependencies

Great tool, slowly getting the idea of it.

Is it possible to specify dependencies in the modules declaration in the config phase ? I get that we can define a module and the files associated that need to be loaded, but can we also specify requirements using a previously declared module, ala requirejs ?

for instance,

modules: [
{name: 'Common',
files: ['/app/common/Amodule.js']},
{name: 'NeedsCommon',

so that if a state needed "NeedsCommon" which in turn required "Common" to be loaded, we'd only have to specify the one module in the resolve. I've been trying various names incase its alread a feature, but havent stumbled on it yet.