Hi guys,

Im quite stuck at the moment, ive been attempting to use a factory or 
service to get chart data from a REST API endpoint within separate 
controllers but im having no luck.

In essence i want to make a call to get some stats/chart data and pass that 
to my directive to chart (highcharts) and then again to another endpoint 
for another controller which should get me 2 charts on a single page using 
directives and separate data.

I asked this on stack exchange but didnt get a resolve: 
http://stackoverflow.com/questions/36077687/factory-service-data-being-overwritten-by-next-call-to-api-endpoint/36077829#36077829

Ive got 2 separate controllers, a chart directive and what i get back is 
data for 1 chart but none for the other. Its like the factory/service is 
reinitialized once its called sequentially from the next controller. I 
thought having separate controllers and 2 "seemingly" separate calls to my 
REST endpoints (both have different data) would give me what i need..

Any help or clarity if im doing it all wrong would be much appreciated.

Regards,

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" 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/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to