We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f3dafa commit 82e79c6Copy full SHA for 82e79c6
src/ng-fusioncharts.js
@@ -1,5 +1,5 @@
1
(function () {
2
- var fc = angular.module('ngFusionCharts', []);
+ var fc = angular.module('ng-fusioncharts', []);
3
4
5
fc.directive('fcChart', function ($http) {
@@ -10,14 +10,16 @@
10
fcDataset: '@',
11
fcCategories: '@',
12
fcChartAttrs: '@',
13
- fcChartClick: '@'
+ fcDataplotClick: '@'
14
},
15
link: function (scope, element, attrs) {
16
var chart = null,
17
events = {
18
- chartClick: function (ev, props) {
19
- if(attrs.fcChartClick) {
20
- scope.$parent[attrs.fcChartClick](ev, props);
+ dataplotClick: function (ev, props) {
+ if(attrs.fcDataplotClick) {
+ scope.$apply(function () {
21
+ scope.$parent[attrs.fcDataplotClick](ev, props);
22
+ })
23
}
24
25
};
0 commit comments