1 (function(angular
, CRM
) {
2 // crmApp is the default application which aggregates all known modules.
3 // crmApp should not provide any significant services, and no other
4 // modules should depend on it.
5 var crmApp
= angular
.module('crmApp', CRM
.angular
.modules
);
6 crmApp
.config(['$routeProvider',
7 function($routeProvider
) {
9 if (CRM
.crmApp
.defaultRoute
) {
10 $routeProvider
.when('/', {
11 template
: '<div></div>',
12 controller: function($location
) {
13 $location
.path(CRM
.crmApp
.defaultRoute
);
18 $routeProvider
.otherwise({
19 template
: ts('Unknown path')