Javascript MVVM Organization View empty, ViewModel full of code -


i end having code inside viewmodel because there nothing suits. should go view ? examples ?

depends on library use. e.g angularjs (http://angularjs.org) has ability use expressions in views : http://docs.angularjs.org/guide/expression

the goal have view based logic (even expressions) in view. , business logic in viewmodel.

having such expressiveness missing in other libraries e.g in knockout view pretty dumb.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -