-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmyEmpl.js
More file actions
63 lines (62 loc) · 1.82 KB
/
myEmpl.js
File metadata and controls
63 lines (62 loc) · 1.82 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
53
54
55
56
57
58
59
60
61
62
63
;(function() {
'use strict';
angular
.module('myApp')
.controller('nameCtrl', function($scope){
$scope.firstName = 'John';
$scope.lastName = 'Week';
})
.controller('numCtrl', function($scope){
$scope.firstName = 1;
$scope.lastName = 2;
})
.controller('colCtrl', function($scope){
$scope.color = 'lightblue';
})
.controller('reptCtrl', function($scope){
$scope.persons = [
{firstName: 'John', lastName: 'Week'},
{firstName: 'Bart', lastName: 'Simpson'},
{firstName: 'Herbert', lastName: 'Schildt'},
{firstName: 'Guido', lastName: 'van Rossum'},
]
})
.controller('chnameCtrl', function($scope){
$scope.firstName = 'Kevin'
$scope.changeName = function() {
$scope.firstName = 'Lana'
}
})
.controller('dateCtrl', function($scope){
$scope.answer = {
"in_gen": {
"bandwidth": null,
"id": 3,
"iperf_pid": null,
"pause": null,
"period": null,
"status": 0,
"turned_on": "2022-02-21 10:29:17.191626"
},
"out_gen": {
"bandwidth": null,
"id": 3,
"iperf_pid": null,
"pause": null,
"period": null,
"status": 0,
"turned_on": "2022-02-19 01:55:13.832010"
}
}
})
.controller('apiCtrl', function($scope, $http){
$http.get('http://213.87.200.65:9001/device/3').then(function(response){
$scope.answer = response.data
})
})
.directive('testDirective', function(){
return {
template : "i'm here just for directive test, no more"
}
})
})();