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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -