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
Post a Comment