Learn AngularJS : Hour 1

Who is not talking about Angular.JS? Undoubtedly it is most powerful framework (Not Library) to create Single Page Applications (SPA). In this Learn AngularJS series, I will focus on basics of Angular. This series will help you in getting started with AngularJS. In first hour we will write first AngularJS Apps and understand bootstrapping ofContinueContinue reading “Learn AngularJS : Hour 1”

== and === operators of JavaScript in simple words

There are astronomical articles and blog posts have been written on == and === operators in JavaScript but I had tough time understanding it. So I decided to write my learning in this blog post. I will try to explain == and === in simplest words. To start with try to understand difference between theseContinueContinue reading “== and === operators of JavaScript in simple words”

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 ViewModelContinueContinue reading “Understanding click binding in Knockout.js”

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 toContinueContinue reading “Control Flow bindings in Knockout.js”

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 ComputedContinueContinue reading “Computed Observable in Knockout.js”

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 TextContinueContinue reading “Why we need Observable Properties in Knockout.js”

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 exampleContinueContinue reading “Inbuilt Bindings in Knockout.js: Controlling Text and Appearance”

JavaScript Functions is a Statement or Expression?

Answer of above question is JavaScript functions can be used either as statement or expression. JavaScript functions can be treated in different ways. They can be Expression Passed as value Returned as value Statement Functions in JavaScript can be Expression or Statement. Problem is in both flavour they look exactly same. So a function statementContinueContinue reading “JavaScript Functions is a Statement or Expression?”