I have successfully created a d3.js directive, but I am facing an issue when resizing the window. The values of my first directive seem to be taking on the values of my second directive. How can I separate the two in order to resize them correctly?
(both directives already have an isolate scope).
Check out the plunker for reference: http://plnkr.co/edit/1GdEeug8k8Op2PWXFTqo
The part where my console returns the same object is as follows:
$window.onresize = function() {
console.log(scope);
};
This is what I observe in my console.