Parent: [cdb7f8] (diff)

Child: [4c81a3] (diff)

Download this file

app.js    22 lines (19 with data), 607 Bytes

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