knockout.js Getting started with knockout.js Installation or Setup

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

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


Got any knockout.js Question?