Hi folks,

I have a custom directive which creates inside the link function an SVG 
element and puts some DOM elements using d3. This is done by accessing a 
$scope.drawGraph(scope, element, attr) function within the directive's link.

Now I need to update this SVG as the user manipulates some parameters, 
which needs to empty the SVG and re-use drawGraph(). For example, I have a 
scale that is based on a year range (min and max) and needs to be updated.

Since I only have access to "scope" and not to the "element" and 
"attribute" within my controller (element and attr are define inside the 
directive only I guess), I cannot call the drawGraph function again.

Any tips?

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to