AngularAMD + ui-router + dynamic controller name?

This is a link to working plunker. solution We need two features of the UI-Router: resolve (to load the missing pieces of js code) controllerProvider (see cites from documentation below) angularAMD – main.js definition This would be our main.js, which contains smart conversion controllerName – controllerPath: require.config({ //baseUrl: “js/scripts”, baseUrl: “”, // alias libraries paths … Read more