I'm having trouble writing a simple directive that updates d3 positions in a circle using angle characters.
Here is an example - http://jsfiddle.net/hKxmJ/3/
This is the model:
app.controller('AppCtrl', function ($scope) { $scope.d = [5, 10, 70, 6, 40, 45, 80, 30, 25]; });
what the example should do is the ability to update the position of the circle and the text next to the input when changing the number in the input field. nothing works right now, except for the initial loading of the directive.
Update
http://jsfiddle.net/hKxmJ/5/
I changed my scope to
app.controller('AppCtrl', function ($scope) { $scope.d = [{v: 5}, {v: 10}, {v: 70}, {v: 6}, {v: 40}, {v: 45}, {v: 80}, {v: 30}, {v: 25}]; });
and the text is updated, but the clock in the directive is still not updated.
source share