Skip to content
Maxime LUCE edited this page Feb 25, 2014 · 1 revision

Allow easy property logging.

Samples

Simple usage
<p data-bind="text: myProperty, debug: myProperty"></p>

will output in console

Debug Binding, myPropertyValue
Debug Binding, myNewPropertyValue
Customize message
<p data-bind="text: myProperty, debug: { message: 'my property debug', value: myProperty }"></p>

will output in console

my property debug, myPropertyValue
my property debug, myNewPropertyValue

Options

value
  • type: any
  • required

Value to output to console.

message
  • type: string
  • optional
  • default: Debug Binding

Custom message to help complex debugging scenario.

Clone this wiki locally