Template.bindingInitializer property

Gets or sets the default binding initializer for the template.

Syntax

<div 
    data-win-control="WinJS.Binding.Template" 
    data-win-options="{ bindingInitializer : value}" >
</div>
var bindingInitializer = template.bindingInitializer;
template.bindingInitializer = bindingInitializer;

Property value

Type: Object

The default binding initializer for the template. The default value is undefined.

Remarks

If you set this property and also specify a binding initializer when bind, the binding initializer you specified at binding is used.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Binding

See also

Template