Closed sabbir-hossain closed 8 years ago
I'm try it too and want do a countdown like a watch but colour is not changing.
I solve this problem by using the following code :
angular.module('', [])
.controller('DemoCtrl', function($scope, $timeout) {
$scope.options = { /* knob option */ };
$scope.details = 0;
$http
.get(url)
.then(function(res) {
$timeout(function() {
$scope.details = res.data.rating
}, 1000);
}, function(err) {});
});
Created pull request to fix this..
After returning data from server request, the color of the knob cannot be updated as like as given image link http://screencast.com/t/Ueeonnx4 . My code is given below:
JavaScript Code
html code