Commit | Line | Data |
---|---|---|
416abe87 | 1 | (function(angular, CRM) { |
a8e65974 TO |
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. | |
416abe87 | 5 | var crmApp = angular.module('crmApp', CRM.angular.modules); |
7585cf5b | 6 | |
416abe87 PH |
7 | crmApp.config(['$routeProvider', |
8 | function($routeProvider) { | |
b20ea913 TO |
9 | |
10 | if (CRM.crmApp.defaultRoute) { | |
11 | $routeProvider.when('/', { | |
12 | template: '<div></div>', | |
13 | controller: function($location) { | |
14 | $location.path(CRM.crmApp.defaultRoute); | |
15 | } | |
16 | }); | |
17 | } | |
18 | ||
416abe87 PH |
19 | $routeProvider.otherwise({ |
20 | template: ts('Unknown path') | |
21 | }); | |
22 | } | |
23 | ]); | |
416abe87 | 24 | })(angular, CRM); |