O'Reilly logo

KnockoutJS Web Development by John Farrar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Packaged Elegance

First there was HTML and JavaScript, then CSS. Next came AJAX to usher in Web 2.0, as it is called. After that, templates drove us to a more dynamic, creative platform. The next advancement in web development was custom HTML components. KnockoutJS allows us to jump right in with some game-changing elegance for designers and developers. In this chapter, we will focus on:

  • An introduction to components
  • Bring Your Own Tags (BYOT)
  • Enhancing attribute handling
  • Making your own libraries
  • Asynchronous module definition (AMD)—on demand resource loading
  • Component-based Single-Page Applications (SPA)

This entire chapter is about packaging your code for reuse. Using these techniques, you can make your code more approachable and elegant. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required