Welcome Guest. Sign in or Signup

0 Comments

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

Asked by: 1306 views 2. KnockOut (KO)

0
0

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