eagle21st / BWchallenge

0 stars 0 forks source link

$scope.$watch #6

Open diwu1989 opened 9 years ago

diwu1989 commented 9 years ago

I didn't see any usage of $scope.$watch, so how would the directive react when the value is changed?

diwu1989 commented 9 years ago

also, when the arc is drawn already and the value changes, it should animate from the current position to the new position vs resetting

eagle21st commented 9 years ago

https://github.com/eagle21st/BWchallenge/blob/master/src/js/double-progress/double-progress.directive.js#L128-L132

adding scope.$watch on expected and actual, and arc will animate from current position.