-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathmodule.js
More file actions
35 lines (30 loc) · 1 KB
/
module.js
File metadata and controls
35 lines (30 loc) · 1 KB
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
/**
* @file Instantiates and configures angular modules for your module.
*/
define([ 'angular' ], function(ng) {
'use strict';
ng.module('{{template_name}}.controllers', []);
ng.module('{{template_name}}.providers', []);
ng.module('{{template_name}}.services', []);
ng.module('{{template_name}}.factories', []);
ng.module('{{template_name}}.directives', []);
var module = ng.module('{{template_name}}', [
'cs_common',
'{{template_name}}.models',
'{{template_name}}.services',
'{{template_name}}.factories',
'{{template_name}}.controllers',
'{{template_name}}.providers',
'{{template_name}}.directives'
]);
module.config(function($routeProvider, TemplateProvider) {
// Register any routes you need for your module.
$routeProvider
.when(' /example', {
templateUrl : TemplateProvider.view('{{template_name}}', '{{template_name}}-view'),
controller : '{{Template}}Controller',
public : true
});
});
return module;
});