You can simply distribute the route configuration over your modules. The only thing you must do, register all modules in your "app"-module.
angular.module('app', ['app.profile', 'app.contact'])
.config(function ($routeProvider) {
$routeProvider.when("/", { templateUrl: "/partials/home.html" })
.otherwise({ redirectTo: '/' });
});
angular.module('app.profile', [])
.config(function ($routeProvider) {
$routeProvider.when("/profile", { templateUrl: "/partials/profile.html" });
});
angular.module('app.contact', [])
.config(function ($routeProvider) {
$routeProvider.when("/contact", { templateUrl: "/partials/contact.html" });
});