Understanding click binding in Knockout.js

Click Binding adds click event to element on View. You can do click binding with any function in ViewModel or you can bind to any normal function. Let us try to understand it with a very simple ViewModel. We have a ViewModel as below As you see there is one function as property of ViewModel…… Continue reading Understanding click binding in Knockout.js

Resources from talk “Expose CRUD operation as WCF SOAP and REST”

Find source code used in demo from talk here on Github On 18th January 2014 I gave my 1st talk for the year 2014. It was on my favourite topic WCF. On this winter morning there was around 70 developers to learn WCF. Read official recap here Browse photo from event here   I had…… Continue reading Resources from talk “Expose CRUD operation as WCF SOAP and REST”

Create a Router in Node.js using crossroads

Routers are very important in any web server. Primary function of a Router is to accept request and on basis of requested URL trigger desired process. Consider a rough example in that client is requesting http://abc.com/users/myprofile and there request may serve from URL http://abc.com/node/2 assuming user is stored in node with id 2. In Node.js…… Continue reading Create a Router in Node.js using crossroads

Error: `doctype 5` is deprecated, you must now use `doctype html`: Node.js Express App bug solved

I am using Visual Studio to create Node.js application. I created a Node project by selecting Blank Express Application project template from JavaScript project type. After creating project I pressed F5 to run application. On running application I got following error Solving this error is very easy. From views folder in project open layout.jade. You…… Continue reading Error: `doctype 5` is deprecated, you must now use `doctype html`: Node.js Express App bug solved

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…… Continue reading Control Flow bindings in Knockout.js