Hi people I got an small problem trying to instance a second gantt
I’m using for that purpose 2 different angular directives, like these:
app.directive(‘ganttControl’, [’$window’, ‘$rootScope’, ‘$cookieStore’, function ($window, $rootScope, $cookieStore)
app.directive(‘ganttControl1’, [’$window’, ‘$rootScope’, ‘$cookieStore’, function ($window, $rootScope, $cookieStore)
the idea is to use each one of them in a different page.
but when I’m using the second one -ganttControl1-, the code inside the -ganttControl- directive is also executing, I think this is because the gantt is some kind of global varible, I mean I wasn’t able to create 2 difference instances of this object to have separate behaviours.
I don’t know if I explain myself correctly about my problem.
If I’m getting the wrong idea please let me know, of if there is any possible solution for my problem.