Welcome Guest. Sign in or Signup


How to prevent KO from wrapping certain properties in the data source for notification?

Asked by: 1558 views 2. KnockOut (KO)


Normally, when you create a KO “view model” through a call like ko.mapping.fromJS(yourData), all the properties in “yourData” will be converted to observable properties (functions) so that KO can notify listeners when their value changes. However, sometimes you may not want KO to “wrap” some properties. You can do so by setting up some mapping filters as follows:

Comments on Question