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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -