Hybrid View

proxy parameters - dynamic at startup, and dynamic from user

I am in the early stages of an app that will be, I think, fairly straightforward representation and occasional update of an existing, unmodifiable RESTful JSON database. I am struggling with a couple things, at this moment most noticeably the store proxy, and a couple of dynamic parameters that are needed.

config.proxy.url: the particular html file that's loaded sets a global variable, based on which I choose the URL

config.proxy.extraParams.access_token: that comes from the login step (or localStorage, if already logged in), meaning that the app is already launched

So, how do I correctly, from another file (app.js, or controller.Main) update these? And secondly, how do I defer loading until the right time? Setting autoload: false merely gave me a blank page instead of actually loading when I wanted.

And the update question could be more specific -- it boils down to this: where can I learn how to access and update things from other locations? Is there something documenting how to access app elements from other scopes?

Thanks!

ben

PS - tips on where in tutorials/vids/docs to find this would be awesome. I've watched several, looked at a few examples, and not found it so far...