December 2013
Intermediate to advanced
480 pages
14h 11m
English
We discuss WinJS controls in detail in the next chapter; however, I want to make sure that you understand that you can use declarative data binding with WinJS controls properties in the same way as you can use declarative data binding with element attributes.
The trick is to use the winControl property, which is exposed by every HTML element that is associated with a control. You can use the winControl property with the data-win-bind attribute.
For example, the page in Listing 3.11 contains a WinJS Rating control (see Figure 3.8).
FIGURE 3.8 Displaying an average rating with declarative data binding ...
Read now
Unlock full access