Chapter 5. Binding Data to the App
In this chapter we will learn how to implement data binding from different data sources to the elements in the app. The Windows library for JavaScript provides the data source objects that can be used to populate the WinJS
controls such as ListView
or FlipView
with different sorts of data. We have the WinJS.Binding.List
object that is used to access arrays and JSON data and the StorageDataSource
object that provides access to information about the filesystem. These two data source objects enable us to query and bind to items in the data source. Additionally, we will learn how to apply sorting and filtering on the data source and display its data using the ListView
control.