Skip to content

Commit b970ebc

Browse files
committed
use explicit method to define angular directive
1 parent 0b9edbd commit b970ebc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ng-fusioncharts.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
var fc = angular.module('ng-fusioncharts', []);
2828

2929

30-
fc.directive('fcChart', function ($http) {
30+
fc.directive('fcChart', ['$http', function ($http) {
3131
return {
3232
scope: {
3333
fcWidth: '@',
@@ -120,7 +120,6 @@
120120
});
121121
}, true);
122122
}
123-
124123
}
125124

126125
var chart = new FusionCharts(chartConfigObject);
@@ -129,5 +128,6 @@
129128
}
130129
}
131130
}
132-
});
131+
}
132+
]);
133133
}());

0 commit comments

Comments
 (0)