Tuesday, 15 September 2015

javascript - Call function on controller each time view is displayed -



javascript - Call function on controller each time view is displayed -

i struggling head around next (simple?) situation....

i have single page application , creating new module / feature-set within using angularjs. however, due events outside control, using jquery mobile routing.

the problem have 1 particular view needs pull info out of indexeddb each time view displayed there background info polling mechanism may add together / remove objects indexeddb. angular have similar "pageshow" event can utilize trigger indexeddb lookups? thought creating watch concerned resource intensive.

correct me if i'm wrong jquery mobile routing keeps dom , alter display state of different pages right?

if that's case , controller isn't refreshed watcher solution, , 1 simple $watch won't have impact on app performance, although if said changes comes other views improve of two-way info binding between controllers

javascript angularjs

No comments:

Post a Comment