/
home.ts
51 lines (37 loc) · 1.15 KB
/
home.ts
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
39
40
41
42
43
44
45
46
47
48
49
50
51
namespace app.guest.home {
export const namespace = 'app.guest.home';
class HomeConfig {
static $inject = ['stateHelperServiceProvider'];
constructor(private stateHelperServiceProvider){
let state:global.IState = {
url: '/',
views: {
"main@app.guest": {
controller: namespace+'.controller',
templateUrl: 'templates/app/guest/home/home.tpl.html'
}
},
resolve: /*@ngInject*/{
},
data: {
title: "Home",
role: 'public',
icon: 'home',
navigation: true
}
};
stateHelperServiceProvider.addState(namespace, state);
}
}
interface IScope extends ng.IScope
{
}
class HomeController {
static $inject = ['$scope'];
constructor(private $scope : IScope) {
}
}
angular.module(namespace, [])
.config(HomeConfig)
.controller(namespace+'.controller', HomeController);
}