Merge pull request #24063 from eileenmcnaughton/msg_breakdown
[civicrm-core.git] / ang / crmApp.js
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
7 crmApp.config(['$routeProvider',
8 function($routeProvider) {
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
19 $routeProvider.otherwise({
20 template: ts('Unknown path')
21 });
22 }
23 ]);
24 })(angular, CRM);