<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Introduction to Knockout js - Medium]]></title>
        <description><![CDATA[Knockout is a powerful library — easy to learn — developer friendly - Medium]]></description>
        <link>https://medium.com/introduction-to-knockout-js?source=rss----aefafd1362dc---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Introduction to Knockout js - Medium</title>
            <link>https://medium.com/introduction-to-knockout-js?source=rss----aefafd1362dc---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 10:52:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/introduction-to-knockout-js" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What is Knockout.js?]]></title>
            <link>https://medium.com/introduction-to-knockout-js/what-is-knockout-js-b234f2177d54?source=rss----aefafd1362dc---4</link>
            <guid isPermaLink="false">https://medium.com/p/b234f2177d54</guid>
            <category><![CDATA[knockoutjs]]></category>
            <category><![CDATA[jquery]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[mvvm]]></category>
            <dc:creator><![CDATA[Hansi Pabasara]]></dc:creator>
            <pubDate>Tue, 18 Feb 2020 04:04:35 GMT</pubDate>
            <atom:updated>2020-02-18T04:16:14.606Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*pvQ7H1ZcBfTdkWSec_OB3g.png" /></figure><p><strong>What is Knockout.js?</strong></p><p>Knockout is a JavaScript library that allows binding HTML elements against any data model, and based on MVVM pattern that lets you create rich, responsive user interfaces for the display and editor with a clean underlying data model. Knockout.js is compatible with any type of client side or server-side technologies.</p><p><strong>The key features in the Knockout.js are:</strong></p><p>· <strong>Declarative Binding</strong> — HTML DOM elements are linked to the model using a very simple syntax, using a data-bind attribute. Using this feature, it’s made easy to achieve responsiveness. Able to create custom bindings inside data bind.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/1*qbI6D-RbXfVnH5KunupjnA.png" /></figure><p>· <strong>Dependency Tracking</strong> — Relation between the KO attributes and the functions / components of the KO library is clear. Tracks data changes in the KO attribute automatically and updates the respective affected areas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*alxvNgUDTiEV1MGHZ14OxQ.jpeg" /></figure><p>· <strong>Automatic UI Refresh</strong> — When a change is made in the view model, it automatically changed in the UI and vice versa.</p><p>· <strong>Templating</strong> — It is a best way to build complex UI structures.</p><p>· <strong>Extensible</strong> — This implements customized behaviors in just a few lines of code as new declarative bindings for easy reuse.</p><p><strong>Benefits of Using Knockout.js</strong></p><p>· Able to create complex dynamic data models easily.</p><p>· When there is a change in the data model it automatically updates the UI.</p><p>· It’s a pure JavaScript library as it works with any server or client-side technology.</p><p>· It works on all mainstream browsers (Internet Explorer, Chrome, Firefox)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*zZD9RjjHAtRQwS2w0sliAg.png" /></figure><p><strong>Why we have to use Knockout?</strong></p><p>If we consider an example of order a meal interface in order meals online website, when the user cancel an order from the system, we have to remove the item data model and associated html elements from the order meal interface and change the total price. If we don’t use knockout to do this, you will write event handlers and listeners for monitoring the dependence.</p><p>We can manage this kind of complex problems using Knockout.js. Because it automatically tracks the dependencies between HTML elements and their underlying data.</p><p><strong>Knockout Vs jQuery</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/1*ZEtBfGDkISYB2AYHfJGahw.jpeg" /></figure><p>Knockout is a similar JavaScript library like jQuery. Knockout is using MVVM framework while jQuery is using DOM manipulation framework. Main purpose of jQuery is to make JavaScript developer friendly and the purpose of knockout is to bind raw data to a model which will make it easy for the developers. Knockout.js acts as an addition to other Web technologies such as jQuery, MooTools.</p><p><strong>Conclusion</strong></p><p>Knockout.js is no substitute for jQuery as you have understood from the part of their application. There is no a competition between the two and a developer should work side by side with both of them. Using jQuery, it saves the time for the developer while using knockout it mainly helpful in data binding. And also there is minimum need of coding as many issues are automatically implemented, like updating necessary changes in UI and backend through vice versa.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b234f2177d54" width="1" height="1" alt=""><hr><p><a href="https://medium.com/introduction-to-knockout-js/what-is-knockout-js-b234f2177d54">What is Knockout.js?</a> was originally published in <a href="https://medium.com/introduction-to-knockout-js">Introduction to Knockout js</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>