Matteo Scandolo | 0610760 | 2016-06-03 16:37:24 -0700 | [diff] [blame^] | 1 | (function () { |
2 | 'use strict'; | ||||
3 | |||||
4 | angular.module('mCord') | ||||
5 | .directive('eNodeList', function () { | ||||
6 | return { | ||||
7 | restrict: 'E', | ||||
8 | scope: {}, | ||||
9 | controllerAs: 'vm', | ||||
10 | templateUrl: 'app/view/enode-list/e-node-list.tpl.html', | ||||
11 | controller: function(Enodeb){ | ||||
12 | |||||
13 | Enodeb.query().$promise | ||||
14 | .then((enodes) => { | ||||
15 | console.log(enodes); | ||||
16 | this.enodes = enodes; | ||||
17 | }) | ||||
18 | |||||
19 | this.tableConfig = { | ||||
20 | columns: [ | ||||
21 | { | ||||
22 | label: '#', | ||||
23 | prop: 'eNBId' | ||||
24 | }, | ||||
25 | { | ||||
26 | label: 'Ip Address', | ||||
27 | prop: 'IpAddr' | ||||
28 | }, | ||||
29 | { | ||||
30 | label: 'Description', | ||||
31 | prop: 'Description' | ||||
32 | }, | ||||
33 | { | ||||
34 | label: 'Status', | ||||
35 | prop: 'Status', | ||||
36 | type: 'boolean' | ||||
37 | } | ||||
38 | ] | ||||
39 | } | ||||
40 | |||||
41 | } | ||||
42 | } | ||||
43 | }); | ||||
44 | }()); |