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

CanJS Large Scale Application

$
0
0
Hi all,
I would like to know how I can implement a large scale application with an architecture as close as possible to this one Large Scale Application.
I'm sure you already know that article and as i read here in this forum (somewhere) you discouraged the mediator pattern with pub/sub.
However I want to implement widget/module in my application and i NEED that they dont know anything about eachother, that is they should not know even wich dom element is present on the page that is not "rendered" by the widget itself!! Even if dom elements could change, my widgets doesn't need to change their "listener code" everytime if the events is handled by a mediator.
Es. if a control listen for ".widgetItem click" - external - and then i change my class from "widgetItem" to "widget" in the view, im forced to look for every ".widgetItem" in my code and sync it accordingly!!! I know that canJS have template event parameter but these are "per control" and so i've to mantain 20+ control i will be a pain in the...
Since im new to canjs, I think is (together with the other jsmvc components) one of the best framework here but I need a little help to implement that kind of architecture on top of canjs, doesnt have to be complex....Any Ideas?

Viewing all articles
Browse latest Browse all 3491

Trending Articles