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
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 is perhaps the most simplest of all the three operators…
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.