Skip to main content
WinJS.Binding.as function

Applies to Windows and Windows Phone

Returns an observable object. This may be an observable proxy for the specified object, an existing proxy, or the specified object itself if it directly supports observation.

Syntax


var object = WinJS.Binding.as(data);

Parameters

data

Type: object

The object to observe.

Return value

Type: Object

The observable object.

Remarks

For more information about using this method, see the Programmatic binding sample.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.Binding

Library

Winjs.js