proposal-grid.directive.js
1.09 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
(function() {
'use strict';
angular
.module('dialoga')
.directive('proposalGrid', proposalGrid);
/** @ngInject */
function proposalGrid() {
/** @ngInject */
function ProposalGridController($scope, $rootScope, $element, $location, $filter, $log) {
$log.debug('ProposalGridController');
// alias
var vm = this;
// dependencies
vm.$scope = $scope;
vm.$rootScope = $rootScope;
vm.$element = $element;
vm.$location = $location;
vm.$filter = $filter;
vm.$log = $log;
// initialization
vm.init();
vm.attachListeners();
}
ProposalGridController.prototype.init = function() {
// var vm = this;
};
ProposalGridController.prototype.attachListeners = function() {
// var vm = this;
};
var directive = {
restrict: 'E',
templateUrl: 'app/components/proposal-grid/proposal-grid.html',
scope: {
proposals: '='
},
controller: ProposalGridController,
controllerAs: 'vm',
bindToController: true
};
return directive;
}
})();