>
> Thank you Daniel for your answer!!! I'm try to explain better. In my web
> application I have defined two modules "privateProfileModule" and
> "publicProfileModule". In every page of "publicProfileModule"
>
> I call this code on the head of the page:
<script type = "text/javascript">
google.charts.setOnLoadCallback(function(){
angular.bootstrap(document.body, ["publicProfileModule"]);
});
google.charts.load("current", {packages: ["corechart"]});
</script>
And works fine!!!
But, today, I have tried to add a google chart to my module
"privateProfileModule" adding the same code to the head but modifying the name
of the module to "privateProfileModule".
<script type = "text/javascript">
google.charts.setOnLoadCallback(function(){
angular.bootstrap(document.body, ["privateProfileModule"]);
});
google.charts.load("current", {packages: ["corechart"]});
</script>
And works wrong!!! Duplicating the calls to the function when I load the page
for first time. And when I make clic over a button. Furthermore, other
directives doesn't work. Despite of this
bad operation I can see the column chart, but If I try to make a search throuh
searcher which is in the same page, then the function which makes the search is
called twice.
If I comment the line with "angular.bootstrap(document.body,
["privateProfileModule"]) I've got the same error from google visualization, I
don't see the column chart and when I load the page
all the functions called are called just only once.
Error: google.visualization is undefined
.link@http://gnsys.local/js/directives/private-google-chart-directives.js:80:8
$/<@http://gnsys.local/js/angular.min.js:73:31
aa@http://gnsys.local/js/angular.min.js:73:90
K@http://gnsys.local/js/angular.min.js:62:39
g@http://gnsys.local/js/angular.min.js:54:410
g@http://gnsys.local/js/angular.min.js:54:433
K@http://gnsys.local/js/angular.min.js:61:488
g@http://gnsys.local/js/angular.min.js:54:410
K@http://gnsys.local/js/angular.min.js:61:488
g@http://gnsys.local/js/angular.min.js:54:410
g@http://gnsys.local/js/angular.min.js:54:433
g@http://gnsys.local/js/angular.min.js:54:433
g@http://gnsys.local/js/angular.min.js:54:433
K@http://gnsys.local/js/angular.min.js:61:488
g@http://gnsys.local/js/angular.min.js:54:410
W/<@http://gnsys.local/js/angular.min.js:53:480
zc/d/</<@http://gnsys.local/js/angular.min.js:20:99
lf/this.$get</n.prototype.$eval@http://gnsys.local/js/angular.min.js:133:217
lf/this.$get</n.prototype.$apply@http://gnsys.local/js/angular.min.js:133:446
zc/d/<@http://gnsys.local/js/angular.min.js:20:57
e@http://gnsys.local/js/angular.min.js:39:191
zc/d@http://gnsys.local/js/angular.min.js:19:480
zc@http://gnsys.local/js/angular.min.js:20:274
Zd@http://gnsys.local/js/angular.min.js:19:83
@http://gnsys.local/js/angular.min.js:293:238
a@http://gnsys.local/js/angular.min.js:174:399
Hf/c@http://gnsys.local/js/angular.min.js:35:212
<div class="ng-isolate-scope" column-chart="" columns="rightChart.columns"
data="rightChart.data" title-chart="rightChart.title" min="rightChart.min"
max="rightChart.max" v-axis-title="rightChart.vAxis.title"
tooltip-column="3" is-clicked="false" width="450" height="450"
style="width: 100%; height: 100%">
But If I comment google.charts.load("current", {packages: ["corechart"]})
line. I don't see the column chart , I get the same google visualization
error and the functions called when the page is loaded are called just one
time.
Is there any way to see the result of my directive which build a colum
chart without calling angular.bootstrap(document.body,
["privateProfileModule"]); or doing it in another way?
Thanks Daniel for your appreciated help!!!
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/8ba33913-7dd2-40ae-8f00-9bcc25e8efc7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.