commit | cc5a37f7362e8aabb8f21705c8583d2ff19a641d | [log] [tgz] |
---|---|---|
author | Ed Tanous <ed.tanous@intel.com> | Thu May 11 10:27:23 2017 -0700 |
committer | Ed Tanous <ed.tanous@intel.com> | Thu May 11 10:27:23 2017 -0700 |
tree | 5608eb4c28bc22aa221aa503916946fa5b79d827 | |
parent | e2fc45a1cd7645e50754d93ce52ec8935e723007 [diff] [blame] |
incremental
diff --git a/static/js/sensorController.js b/static/js/sensorController.js new file mode 100644 index 0000000..3554c0f --- /dev/null +++ b/static/js/sensorController.js
@@ -0,0 +1,11 @@ +angular.module('bmcApp').controller('sensorController', [ + '$scope', '$resource', + function($scope, $resource) { + + var systeminfo = $resource("/sensortest"); + systeminfo.get(function(sensor_values) { + $scope.sensor_values = sensor_values; + }); + + } +]); \ No newline at end of file