-
Notifications
You must be signed in to change notification settings - Fork 0
/
controller.tpl.js
53 lines (44 loc) · 1.66 KB
/
controller.tpl.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**
* @ngdoc controller
* @name <%=resourceName%>.controller.js
* @description <%=resourceNameJS%> <%=controller_controller%>
*/
(function() {
"use strict";
angular // eslint-disable-line no-undef
.module("<%=moduleName%>")
.controller("<%=resourceNameJS%>", <%=resourceNameJS%>);
/** @ngInject */
function <%=resourceNameJS%>($scope) {
//var vm = this;
/***********************************************************************
* <%=controller_local_variables%>.
**********************************************************************/
//var bar;
/***********************************************************************
* <%=controller_variables_exports%>.
**********************************************************************/
//vm.fooBar = "fooBar";
/***********************************************************************
* <%=controller_functions_exports%>.
**********************************************************************/
//vm.foo = foo;
// <%=controller_calling_activation%>.
activate();
/***********************************************************************
* <%=controller_activation%>.
**********************************************************************/
function activate() {
}
/***********************************************************************
* $scope destroy.
**********************************************************************/
$scope.$on("$destroy", function() {
});
/***********************************************************************
* <%=controller_functions%>.
**********************************************************************/
//function foo(bar) {
//}
}
})();