dev/core#651 Fix group by on export soft credits (possible recent regression, clearly...
[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 crmApp.config(['$routeProvider',
7 function($routeProvider) {
8
9 if (CRM.crmApp.defaultRoute) {
10 $routeProvider.when('/', {
11 template: '<div></div>',
12 controller: function($location) {
13 $location.path(CRM.crmApp.defaultRoute);
14 }
15 });
16 }
17
18 $routeProvider.otherwise({
19 template: ts('Unknown path')
20 });
21 }
22 ]);
23 })(angular, CRM);