Year: 2013
-
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…
-
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 statement…
-
How to access functionality from various JS files in Node.js
In this post we will take a look on working with different JS files in Node.js. To start with let us assume a scenario that you have several js files and you need to work with these js files and use functionalities from these files in server.js. In Node a JS file is a module.…
-
Can you answer these 10 basic Knockout Questions?
Q1. KO performs following operations Automatic Refresh Two way Binding Templating All of the above Q2. On which event bindings in KO fire notification Change event Update event On Any event None of the above Q3. Value of computed observable is determined at Time of creation Time of update Time of…
-
Working with OS Module in Node.JS
In this post we will take a quick look on OS module in Node.js. OS module is to work with OS component. It provides some functionality to work with Operating System. Using this module you can get following information like below, OS target version Host name OS temp folder Total memory in system Free memory…
-
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…
-
Events in NodeJS : Write your first event
Setup Environment on Windows machine for Node.js Development: Part 1 Let us simplify “Hello World” Node.js Example and EventLoop : Part 2 Each objects in NodeJS emit an asynchronous event. That event is handled by an object EventEmitter. EventEmitter is underneath every object. EventEmitter object, Takes care of event being emitted by Node object Handles…
-
How to setup JavaScript Build in Sublime Text 2
Yes I am turning friend of Sublime Text and thought to use Sublime for JavaScript development as well. To execute JavaScript in Sublime, you need to create new Build System for JavaScript. There are two steps you need to follow, Install Node.js Create new build system for JavaScript To install Node navigate to http://nodejs.org/ and…
-
Let us simplify “Hello World” Node.js Example and EventLoop
We are learning Node together. In last post We Setup Environment on Windows machine for Node.js Development. We also wrote a Hello World program to verify whether environment is setup as expected or not. In this post we will try to understand each line of Hello World program. Understanding of this is very useful for…
-
Setup Environment on Windows machine for Node.js Development
I am aspired to learn Node and I had tough time setting up environment for Node development. Guess what I got none other than Mr Glenn Block to help me. We did pair programming over Google Hangout and he helped me setting up. It was his kindness that he spent time with me. He has…