knockout.js Installation or Setup


Example

Knockout is available on most JavaScript platforms, or as a standalone script.

Include as a script

You can download the script from it's download page, then include it in your page with a standard script tag

<script type='text/javascript' src='knockout-3.4.0.js'></script>

Using a CDN

You can also include knockout from either the Microsoft CDN, or CDNJS

<script type='text/javascript' src='//ajax.aspnetcdn.com/ajax/knockout/knockout-3.4.0.js'></script>

OR

<script type='text/javascript' src='//cdnjs.cloudflare.com/ajax/libs/knockout/3.4.0/knockout-min.js'></script>

Install from npm

npm install knockout

optionally you can add the --save parameter to keep it in your package.json file

Install from bower

bower install knockout

optionally you can add the --save parameter to keep it in your bower.json file

Install from NuGet

Install-Package knockoutjs