Tag: Javascript
-
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…
-
Video : What is Chained Syntax in Knockout.js
In this video you will learn about Chained Syntax in Knockout.js We use Chained Syntax to update more than one property of ViewModel in one line of code.
-
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…
-
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…