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
);
7 crmApp
.config(['$routeProvider',
8 function($routeProvider
) {
10 if (CRM
.crmApp
.defaultRoute
) {
11 $routeProvider
.when('/', {
12 template
: '<div></div>',
13 controller: function($location
) {
14 $location
.path(CRM
.crmApp
.defaultRoute
);
19 $routeProvider
.otherwise({
20 template
: ts('Unknown path')