javascript - Staging area for JSON filled views -


i have spa webapp calls webservice gather 'x' amount of json objects ~(1 - 30+). use data multiple changing slides (all data not displayed in 1st slide).

i using node/express/angular/jade.

how should stage these slides when gather original data webservice (can call service once because $ constraints)? button/urls work well. so, should render out data , use client side js hide/show dom elements based on button clicks (incorporating messy hash bangs , js methods track location/flow). or there sexier more efficient way? should store data in cache , pull (using angularjs ng-view, note: changing ng-view pain... ideal have ng-view within ng-view in particular situation, though doesnt exist) based on slide? or there way?

thank help, let me know if need further explanation.

for mapping urls angularjs pages, suggest using ui-router. may or may not need ui-router particular problem. but, generally, tremendously in organizing structure of site.

for other questions:

i store results (which retrieved service) in $rootscope variable. page index of slides parameter in url. based on value of parameter, controller can decide page content display.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -