Create a new project as we did with the Knockout cart.
Inside this project, copy the content of the Durandal Starter Kit project.
Now we should have three folders in our project:
app: This contains our application
css: This contains stylesheets
lib: This contains third-party libraries
Migrate the following libraries from the Knockout cart project to the Durandal cart project:
Install a new library called Toastr from http://codeseven.github.io/toastr/.
ko.validation.jsfile on line 19 with the following code:
define(["knockout", "exports"], factory);
style.cssfile from the Knockout cart to the
cssfolder in the Durandal cart project.
modelsfolder inside the
servicesfolder inside the
Create a file called
bindings.jsat the same level as the
Overview of this book
Table of Contents (16 chapters)
About the Author
About the Reviewers
Refreshing the UI Automatically with KnockoutJS
Custom Bindings and Components
Managing KnockoutJS Events
Getting Data from the Server
The Module Pattern – RequireJS
Durandal – The KnockoutJS Framework
Developing Web Applications with Durandal – The Cart Project