psu-capstone / churchill

Other
2 stars 2 forks source link

$rootscope variables not preserved upon page refresh #91

Closed m-d-s closed 8 years ago

m-d-s commented 8 years ago

looks like we might be able to use locale storage http://stackoverflow.com/questions/21374643/rootscope-value-used-in-a-controller-is-overridden-when-refreshing-the-page-use

or we could re-query the db on refresh http://stackoverflow.com/questions/23983180/execute-function-on-real-page-refresh

r-t-a commented 8 years ago

ah crap, didn't even test for that

r-t-a commented 8 years ago

should be good now, using angular-cookies and ngCookies in our app.module()

r-t-a commented 8 years ago

using $cookies now, saves and should check at each page change the cookie validation, but for development purposes I uncommented the resolve {} functions back out again, if you'd like to play with it, comment the resolves back in in app.js