SQL Server indexes are the structures associated with a SQL table or view that help in faster retrieval of the data from table/view. There are mainly two kinds of SQL Server Indexes. Clustered Index and Non-Clustered Index.

Clustered Index :

A clustered Indexes sort the data using based on their key values. Clustered Indexes can point to only one row since data rows can be sorted only in one order. More often than not, this row is usually the primary key (unless specified otherwise).

A Clustered Index is automatically created when you create a table with a primary key constraint…


Directives are one of the most fundamental concepts in angular. They are simply instructions to the DOM. Think of it as the directions to the dom. Directives manipulate the DOM to add elements to the DOM or change the behavior of the existing ones.

Depending on what they do, directives are broadly classified into three types

  1. Components: Components are directives with a template. When you insert a component, you are adding it’s template to the DOM.
  2. Structural directives: Structural directives change the structure of the DOM by adding or removing the elements from it.
  3. Attribute directives: Attribute directives are the…


Dependency Injection is a software design pattern used to implement Inversion of Control to avoid dependencies in your code.

Now, that’s a pretty standard definition. But before we discuss the concept of Dependency Injection(DI) deeply, we need to understand two key words “Dependency” and “Inversion of Control”.

Dependency: In programming, Objects/Services often depend on each other to complete their functionality. For example, a class responsible for creating a new user (say signUp) need help of another class (say passwordChecker) that checks whether the password is in valid format or not. …


In Web development, you often deal with stream of data passed over time using Observables. (I have discussed about observables in my last blog post). However in most scenarios, you will find that you cannot simply consume the data directly, you will need to manipulate the data in someway using functions.

RxJs provides operators for this purpose. Tap, Map and SwitchMap are three such popular operators to apply functions over the observable data. All the three operators have different purpose and utility to them. I will discuss them briefly.

tap:

Tap is perhaps the most simplest of all the three operators…


Promise and Observables are two popular ways of handling asynchronous responses in JavaScript (another way of handling this is using callbacks. It is still used in legacy code but not preferred anymore).

When you make an asynchronous call, Javascript asks a web worker to handle those requests to the backend. Other tasks in the main thread will continue without waiting for the backend response. So how do you handle the data once it is returned from the server? This is where the promises and observables come into the picture.

Before we proceed further, you need to understand the pull and…


Data sharing between parent and child components is one of the fundamental concepts in Angular. Angular provides more than one correct way to do the data sharing between components as discussed below.

Passing data from Parent component to Child component using Input tag

This is perhaps the most straightforward and simplest way of passing data in angular. This can be done using @Input() tag as shown below.

Child Component:

Child component example code

Parent Component:

Raghuvardhan Karanam

Full Stack developer. Angular | .Net | https://raghukaranam.com/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store