Made d3Tip a service, so there wont be multiple dom elements created for it anymore

This commit is contained in:
2017-03-18 13:36:58 +05:30
parent c06c4bb9e0
commit 5cac0568b8
5 changed files with 18 additions and 8 deletions
+5
View File
@@ -0,0 +1,5 @@
var app = angular.module("chart-builder.services",[]);
app.service("d3Tip", function () {
this.tip = d3.tip();
});