summaryrefslogtreecommitdiffstats
path: root/static/js/sensorController.js
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2017-06-06 15:28:13 -0700
committerEd Tanous <ed.tanous@intel.com>2017-06-06 15:28:13 -0700
commit4758d5be3debd098e3ce9ba703c75269ecf6f9b1 (patch)
tree4f899ea041a389a3e26a774ff019d4657bdcb284 /static/js/sensorController.js
parentcfbe25de0832059d2752d6cec5f1924a40f20f17 (diff)
downloadbmcweb-4758d5be3debd098e3ce9ba703c75269ecf6f9b1.tar.gz
bmcweb-4758d5be3debd098e3ce9ba703c75269ecf6f9b1.zip
incremental
Diffstat (limited to 'static/js/sensorController.js')
-rw-r--r--static/js/sensorController.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/static/js/sensorController.js b/static/js/sensorController.js
index 3554c0f..f1e0812 100644
--- a/static/js/sensorController.js
+++ b/static/js/sensorController.js
@@ -1,11 +1,8 @@
angular.module('bmcApp').controller('sensorController', [
- '$scope', '$resource',
- function($scope, $resource) {
-
- var systeminfo = $resource("/sensortest");
- systeminfo.get(function(sensor_values) {
+ '$scope', '$http',
+ function($scope, $http) {
+ $http.get('/sensortest').then(function(sensor_values) {
$scope.sensor_values = sensor_values;
- });
-
+ })
}
]); \ No newline at end of file
OpenPOWER on IntegriCloud