Just a quick thought, but maybe each of your directives/widgets can be 
coded to do nothing (except maybe appear as a placeholder) until they 
appear on screen.
"Appearing on screen" is a tricky thing to detect, but it's doable with 
some scripting that measure the current's viewport position. See this as 
one example, leading to further 
reading: 
http://stackoverflow.com/questions/5353934/check-if-element-is-visible-on-screen
I don't know of any specific angular utility to make that step easier, 
sorry.

Once the widget is on screen, I think your directives can raise events that 
are listened to by services that generate the data/graph to be displayed - 
all asynchronously, I suspect.
HTH
F

On Saturday, February 8, 2014 7:25:38 AM UTC-5, Mirek Sz wrote:
>
> Hello,
> I'm creating an app which have one dashboard screen with about 20 charts. 
> Each chart is directive. In controller of this directive I'm fetching data 
> and  building chart. My problem is: User on standard monitor can see max 4 
> charts another can see when scroll down a page. How to write my directives 
> to works as lazy as possible (see by user)
>

-- 
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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to