How can I access data from a method defined within an onclick function?
onclick: function(d, i) {
$scope.country = d.name;
console.log($scope.country);
}
I am trying to retrieve the name from the object and display it in an HTML
<h1>Clicked: {{country}}</h1>
Plunker