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 Knockout.JS Essentials
  • Table Of Contents Toc
Knockout.JS Essentials

Knockout.JS Essentials

By : Ferrando
4 (2)
close
close
Knockout.JS Essentials

Knockout.JS Essentials

4 (2)
By: Ferrando

Overview of this book

If you are a JavaScript developer who has been using DOM manipulation libraries such as Mootools or Scriptaculous, and you want go further in modern JavaScript development with a simple and well-documented library, then this book is for you. Learning how to use Knockout will be perfect as your next step towards building JavaScript applications that respond to user interaction.
Table of Contents (10 chapters)
close
close
9
Index

Setting up the project


To start the new project, we are going to follow some steps that will give us a good starting point to develop our project:

  1. Create a new project as we did with the Knockout cart.

  2. Inside this project, copy the content of the Durandal Starter Kit project.

  3. Now we should have three folders in our project:

    • app: This contains our application

    • css: This contains stylesheets

    • lib: This contains third-party libraries

  4. Migrate the following libraries from the Knockout cart project to the Durandal cart project:

    • icheck

    • kovalidation

    • mockjax

    • mockjson

  5. Install a new library called Toastr from http://codeseven.github.io/toastr/.

  6. Update the ko.validation.js file on line 19 with the following code:

    define(["knockout", "exports"], factory);
  7. Move the style.css file from the Knockout cart to the css folder in the Durandal cart project.

  8. Move the models folder inside the app folder.

  9. Move the services folder inside the app folder.

  10. Create a file called bindings.js at the same level as the main.js file...

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.
Knockout.JS Essentials
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