i have next route configuration:
    .config(["$routeProvider", function ($routeProvider) {
        $routeProvider
            .when('/something/:id', angularAMD.route({
                templateUrl  : function ($routeParams) {
                    return "views/something/" + $routeParams.id + ".html";
                },
                controllerUrl: function ($routeParams) {
                    return "controllers/something/" + $routeParams.id + "/main";
                }
            }))
Seems like angularAMD doesn't support controllerUrl as function and as result i can't define controllers dynamical.
The question is how i can load different controllers for different urls, mb i missed something or there is another workaround?
                        
You could try something like the bellow. It was taken from this Website(http://www.codeproject.com/Articles/808213/Developing-a-Large-Scale-Application-with-a-Single)