Overview of KnockoutJSlearning manual
Published on 2023-04-20 00:10:05 · 中文 · بالعربية · Español · हिंदीName · 日本語 · Русский язык · 中文繁體
KnockoutJS is basically a library written in JavaScript, based on the MVVM pattern, that helps developers build rich and responsive websites. A model separates an application's model (which stores data), its view (UI), and its view model (a JavaScript representation of the model).
KnockoutJS as an open source project was developed and maintained by Microsoft employee Steve Sanderson on July 5, 2010. KO is an abbreviation for KnockoutJS. KO supports all major browsers – IE 6+, Firefox 3.5+, Chrome, Opera, Safari (desktop/mobile).
Features of KnockoutJS
Here is a list of some of the most prominent features of KnockoutJS-
Declarative Binding - HTML DOM elements use very simple syntax to connect to models through data-bound attributes. Responsiveness can be easily achieved using this feature.
Automatic UI refresh - Any changes made to view model data are automatically reflected in the UI and vice versa. No additional code is required.
The relationship between the Dependency Tracking-KO property and the KO library function/component is transparent. Automatically track data changes in KO attributes and update the corresponding affected areas.
Templates - Templates are an easy and convenient way to build complex UI structures - which can be repeated or nested blocks - as a feature of view model data.
Extensible - It is very easy to extend custom behavior.