Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying KNOCKOUTJS BLUEPRINTS
  • Table Of Contents Toc
KNOCKOUTJS BLUEPRINTS

KNOCKOUTJS BLUEPRINTS

By : Carlo Russo
5 (1)
close
close
KNOCKOUTJS BLUEPRINTS

KNOCKOUTJS BLUEPRINTS

5 (1)
By: Carlo Russo

Overview of this book

If you are a JavaScript developer and already know the basics of KnockoutJS and you want to get the most out of it, then this book is for you. This book will help in your transition from a small site to a large web application that is easily maintainable.
Table of Contents (7 chapters)
close
close
6
Index

Modularizing with the component binding handler

In this section, we are going to discuss two different concepts:

  • AMD and RequireJS
  • KnockoutJS binding handler called component

The reason we are going to look at them together is because the best way to use the second one is with the help of the first one.

AMD and RequireJS

Asynchronous Module Definition (AMD) is a way to modularize JavaScript; you can get a good overview of what AMD is and why it is a good idea to use it at this URL: http://requirejs.org/docs/whyamd.html.

Before the use of AMD, all HTML pages were full of script tags to import all the scripts used. You have seen this behavior in the previous chapter, when we put five script tags into each HTML page.

One of the goals of AMD is to improve the separation of JavaScript and HTML; we get this because we put only one script tag in the HTML file, representing the main entrance to our client-side application. Inside this entrance file we put all the logic to load the other components, with...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
KNOCKOUTJS BLUEPRINTS
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon