KnockoutJS Environment Setup


KnockoutJS Environment Setup It is very easy to install KnockoutJs, You can download the library and install it locally or you can use the hosted CDN. Here in this tutorial, we are going to explain the both ways to install the KnockoutJS.


KnockoutJS Environment Setup | Installation Setps

You can install KnockoutJS in following ways-

  • 1. Download and Install Locally
  • 2. Use Hosted CDN

1 Download And Install Locally

You can download the latest production build of KnockoutJs from it’s official site – Download KnockoutJs

After Downloading just keep the download js file in some folder(such as js) and include it simply as below-

KnockoutJS Install locally Example:

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

After Including this file you will be able to run the KnockoutJS programs.

2. Use Hosted CDN | KnockoutJS CDN Url

If you do not want to download the KnockoutJS library you use the Hosted CDN urls to include the library in your web application, There are following hosted CDN providers for KnockoutJs –

KnockoutJS Cloudflare CDN Url

KnockoutJS Cloudflare CDN Url:

<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.3.0/knockout-min.js" type="text/javascript"></script>

KnockoutJS MicroSoft Ajax CDN Url

KnockoutJS Microsoft Ajax CDN Url:

<script src="https://ajax.aspnetcdn.com/ajax/knockout/knockout-3.4.2.js" type="text/javascript"></script>

After installing this we are able to create the first example.

Note : In this tutorial for creating examples & demos we will use hosted CDN.

Advertisements

Add Comment

📖 Read More