Skip to content
/ MCjs Public

Yet another JavaScript MVC framework, this one is built on traits.js and enforces M => V => C flow. That is Models alert views of data changes, Views trigger commands (functions) in controllers, and Controllers update Models.

Notifications You must be signed in to change notification settings

kreek/MCjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCjs

Yet another JavaScript MVC framework, this one is built on traits.js. In this case the ‘C’ in MVC stands for command (pattern). Views trigger events which are bound to commands. Commands update the models. Models trigger events that update views.

Thanks to traits.js there is one immutable system event dispatcher so many views and commands can respond to the same event. Note that models can only trigger but not respond to events. In large applications directly updating models, from a view dispatched event, can lead to confusing/unwanted side effects.

Examples

Hello, World!
Todos

About

Yet another JavaScript MVC framework, this one is built on traits.js and enforces M => V => C flow. That is Models alert views of data changes, Views trigger commands (functions) in controllers, and Controllers update Models.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published