forked from MinhasKamal/DownGit
-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.js
38 lines (32 loc) · 897 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/***********************************************************
* Developer: Minhas Kamal ([email protected]) *
* Website: https://github.com/MinhasKamal/DownGit *
* License: MIT License *
***********************************************************/
var siteHeaderText = {};
var downGit = angular.module('downGit', [
'ngRoute',
'homeModule',
'toastr',
]);
downGit.config([
'$routeProvider',
function($routeProvider) {
$routeProvider
.when('/', {
redirectTo: '/home',
})
.otherwise({
redirectTo: '/home',
});
}
]);
downGit.config([
'toastrConfig',
function(toastrConfig) {
angular.extend(toastrConfig, {
positionClass: 'toast-bottom-right',
maxOpened: 3,
});
}
]);