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