Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between Knockout.js and jQuery [closed]

I want to know about the difference between knockout.js and jQuery.

like image 671
Rashad Valliyengal Avatar asked Nov 28 '13 05:11

Rashad Valliyengal


People also ask

Does Knockout require jQuery?

KO itself doesn't depend on jQuery, but you can certainly use jQuery at the same time, and indeed that's often useful if you want things like animated transitions.

What is KnockoutJS used for?

Knockout. js was used to build such popular websites as Ancestry.com, Vogue, and Microsoft Azure portal. Thanks to its MVVM model, it's perfect for creating rich and responsive user interfaces with a clean, underlying data model. Today, Knockout.

Is KnockoutJS still used?

It is still usable, I use it all the time. It's a great framework to use on legacy applications where you don't want your JS framework messing with anything, like angular hooking into anchor urls etc…


1 Answers

The difference between knockout.js and jQuery can be found HERE, which shows the main differences of how it is different with jQuery.

For example, knockout.js has declarative bindings, which "allows you to bind the elements of UI to the data model in a simple and convenient way."

Furthermore, knockout.js is very extensible, and it implements custom behaviors as new declarative bindings for easy reuse in just a few lines of code.

Knockout.js is also flexible when it comes to integrating it with other libraries and technologies.

The most important difference, though, is that "Knockout.js is focused only on designing scalable and data-driven UI." - Unlike jQuery it is not for animation or event handling.

like image 115
Domecraft Avatar answered Sep 20 '22 22:09

Domecraft