Tag: MVVM
-
Control Flow bindings in Knockout.js
You can control flow of element on the view using Control Flow bindings of Knockout.js. There are four Control Flow bindings foreach binding if binding ifnot binding with binding Out of these four bindings foreach and if bindings are used very often. foreach binding foreach binding repeat same markup for number of times equivalent to…
-
Computed Observable in Knockout.js
In this post we will take a look on Computed Observable in Knockout.js. Let us start with an example, you have a ViewModel Now you want a custom message to be rendered on the view, that message will depend on other observable of ViewModel. To create that custom message you need to create a Computed…
-
Why we need Observable Properties in Knockout.js
In this post we will take a look on why we need observable properties in Knockout.js Before you read further this blog post, I would recommend you to read Setting up Visual Studio for Knockoutjs Development Create your First MVVM based JavaScript App in two simple steps using Knockoutjs Inbuilt Bindings in Knockout.js: Controlling Text…
-
Inbuilt Bindings in Knockout.js: Controlling Text and Appearance
Setting up Visual Studio 2013 for Knockoutjs Development Create your First MVVM based JavaScript App in two simple steps using Knockoutjs In simpler terms we can define Knockoutjs binding as a mechanism to establish relationship between view and ViewModel. View takes user action and pass the instruction to ViewModel. One of the most popular example…
-
Create your First MVVM based JavaScript App in two simple steps using Knockoutjs
Read all Knockoutjs posts here Setting up Visual Studio 2013 for Knockoutjs Development Okay purpose of this post is very simple to explain you why Knockoutjs. I will try to put it in simplest way that Why we need to work Knockoutjs. If you are not a begineer then probably this post may appear very…
-
Working with Knockout.js Part 5: Working with visible Binding
Working with Knockout.js Part 4: Observable Arrays Working with Knockout.js Part 3: Working with Observables Working with Knockout.js part 2: Understanding MVVM Getting started with Knockout.js So far we have learnt about different aspects of ViewModel creation in Knockout.js. We learnt and discussed about MVVM, Observable, and Observable Array etc. In this post we will…
-
Working with Knockout.js Part 4: Observable Arrays
Read Part 3: Working with Observables Read Part 2: Understanding MVVM Read Part 1: Getting Started So far we have learnt fundamental of KO. In Part 3 we worked with single observable object. In this post we will take a look on working with Arrays of Observable. Focus of this post is to understand how…
-
Working with Knockout.js part 2: Understanding MVVM
Read here Getting started with Knockout.js part1 In last post we had a discussion on Getting started with Knockout. In this post we will go one step further and understand different aspects of MVVM pattern and how Knockout.js helps us in creating web application adhering to MVVM pattern. Let us start our discussion with understanding…
-
Working with Knockout.js Part 1: Getting started with Knockoutjs
In this post we will take a look on Knockout.js. We will start with basic theoretical introduction and then to some basic demo on Knockout.js Knockout.js helps us to create dynamic JavaScript UI using the MVVM pattern. It simplifies the task of linking Data Model to the dynamic JavaScript UI. Knockout.js is a JavaScript library…