>

ko.routing: usage with AMD

Immediately before the end of the body place AMD configuration, require.js, and your application initialization file:

starting AMD

Where we supposed that all js files are in the script folder.

In init.js you require knockout, ko.routing, and other model you might need:

init.js

knockout doesn't include the version numbers to avoid dependency of all js files from the knockout version. If you don't want to rename the knockout file you may add further configuration information:

knockout version