Author: ashish

NgModule in Angular 2

Angular 2 applications are designed for better application organization.Two of the main concepts related to organization of code in Angular 2 are components and modules.Both Components and modules are created by using the decorator functions.NgModule in Angular 2 is used...

Full Stack Development

Before understanding Full stack development it would be useful to understand what is Full Stack.It is also helpful to understand if Full Stack development is specific to web development. Full Stack meaning If consider any application then it will consist of...

Declaring variables in TypeScript

TypeScript is a strongly type language.This means that variables and expressions are type checked at compile time.But if required we can turn off this behavior. Variable declaration in JavaScript In JavaScript variables are not strongly typed.This means that following statements...

Decorators in TypeScript

Decorators are a powerful feature in TypeScript. Decorators in TypeScript allows us to use declarative programming. When we use declarative we don’t need to specify all the steps to achieve a task.In declarative programming we just specify what we require without...

Commonly used software terms

Front-end and Back-end    Relates to the two aspects of software.The user of your application or website access your application through the Front-end.It is the User Interface part of your application. Back-end describes all other part of your application.It includes things...

ECMAScript and JavaScript

ECMAScript is a specification for scripting languages such as JavaScript.Suppose if a browser supports specifications of ECMAScript then it will execute code written in any ECMAScript compatible language.In other words ECMAScript compatible scripting language guarantees that the code will execute in any ECMAScript compatible...

Data Types in TypeScript

TypeScript adds new useful features to JavaScript. One such feature is type system in TypeScript. In JavaScript types are dynamic,this means that variable are not of any specific type.So a variable can be assigned values of different types during its...

Declaring Modules in TypeScript

TypeScript has the concept of modules.Here we will see how to declare modules in TypeScript. When working on any application it helps to keep the code organized.Keeping the code organized provides the following advantages: Code is easier to locate since...

Renaming file or directory in Git

A common scenario while working with configuration management tools such as git is to rename existing files and directories. If you just rename an existing file or directory then git will not be aware of this change.You need to inform...

Generic Function in TypeScript

Generic functions are defined by declaring a type parameter when declaring the function ,in angular brackets.The type parameter is the placeholder which is replaced by the actual type arguments when the program executes. So we define a generic method as:...