javascript - Knockout ViewModels -


in knockout can put data-bind in object isn't view model? trying make available whole page common settings or theme related values. don't want add them every view model.

i.e. data-bind="myglobalsingleton.prop"

yes can, property binding to, needs knockout observable within object. otherwise won't able use benefits of two-way binding.


Comments

Popular posts from this blog

PHP while loop dynamic rowspan -

timer - Java TimerTask cancel -

android - How to read a column value in parse.com without accessing an object or a pointer -