Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Editing viewmodel binding values

timstuyckens edited this page Dec 1, 2013 · 4 revisions

As of version 2.6.1 you can edit viewmodel/binding values from the console. This only works when the property of the viewmodel is a observable. Make sure the option is checked: Example - editbinding

Then you will have 3 extra methods in pages that use knockoutjs. Each method has autocompletion.

  • editBinding This is shorthand for the following:
ko.bindingProvider.instance.getBindings($0,ko.contextFor($0));

Example: Example - editbinding

  • edit$data This is shorthand for the following
ko.contextFor($0).$data;

Example: Example - editbinding

  • edit$root This is shorthand for the following
ko.contextFor($0).$root;

Example: Example - edit$data


_**### ## # **_

Clone this wiki locally