Part 4: Quick Tour of WinJS (1 of 2)

Download this episode

Download Video

Download captions

Download Captions


In this lesson we explore WinJS to learn more about what it can do for our apps. We learn about creating namespaces, classes, simple binding to objects, observability, and more.


Introduction to creating Windows Store apps using HTML and JavaScript

Chris Anderson & Josh Williams at Build 2012


Channel 9's JavaScript Fundamentals Series - Lesson 10: Understanding Function versus Global Scope


Organizing your code with WinJS.Namespace


WinJS.Class.define function



Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • User profile image

      Hi Bob,

      I remember in a lesson in the JS for beginner series, you said we can solve the namespace issue by creating an object includes all our functions. Why don't we use that technique in here? What's the differentiation if using WinJS.Namespace?

      One more thing, in this line: data-win-bind="textContent: time"> Why does the "data-win-bind" know the exactly "time" they need? I think has something to do with it, but I do not quite understand this function, even thought I've read the documentary.

      Thank you.

    • User profile image

      @Minowar: Absolutely nothing wrong with continuing to use that Namespace approach from before.  You'll get a few benefits from using Microsoft's beefed up Namespaces, however.  Check out this thread for a good conversation about this very topic:

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.