Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : CanJS Large Scale Application

$
0
0
Let me explain something, my "pages" will be dynamic meaning that I do not know wich widget will be loaded, so how can I decide where to put observes ?

If I understand you right, then what you are looking for is a way to inject one observable into multiple controls, where the controls themselves dictate the injection. This can easily be solved with AMD require/define by pulling in an instantiated observable as a dependency, rather than that observable's class.


Viewing all articles
Browse latest Browse all 3491

Trending Articles