|
a |
|
b/frontend/js/app.js |
|
|
1 |
'use strict';
|
|
|
2 |
|
|
|
3 |
angular.module('esn.c2net', [
|
|
|
4 |
'op.dynamicDirective',
|
|
|
5 |
'ui.router'
|
|
|
6 |
])
|
|
|
7 |
.config([
|
|
|
8 |
'$stateProvider',
|
|
|
9 |
'dynamicDirectiveServiceProvider',
|
|
|
10 |
function($stateProvider, dynamicDirectiveServiceProvider) {
|
|
|
11 |
var helloworld = new dynamicDirectiveServiceProvider.DynamicDirective(true, 'application-menu-hello-world', {priority: 28});
|
|
|
12 |
dynamicDirectiveServiceProvider.addInjection('esn-application-menu', helloworld);
|
|
|
13 |
|
|
|
14 |
$stateProvider
|
|
|
15 |
.state('c2net', {
|
|
|
16 |
url: '/c2net',
|
|
|
17 |
templateUrl: '/c2net/views/index.html',
|
|
|
18 |
controller: 'helloWorldController'
|
|
|
19 |
});
|
|
|
20 |
}
|
|
|
21 |
]);
|