Want to serialize and deserialize JSON that contain dates properly? (function() { var jsonParse = JSON.parse; var reDate = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/i; function js...
15 VSCode extensions every Web Developer must have
Git Lens When you are working with your teammates on a project this extension uses the power of VSCode and helps you to visualize code authorship at a glance. It shows when a particular code was c...
.NET Interview questions
Q-1: What is the .NET framework? The .NET framework supports an object-oriented approach that is used for building applications on windows. It supports various languages like C#, VB, Cobol, P...
Account service in Angular
import { Injectable } from '@angular/core'; import { Router } from '@angular/router'; import { HttpClient } from '@angular/common/http'; import { BehaviorSubject, Observable } from 'rxjs'; import {...
Angular Questions and Answers
Want to replace a placeholder with some content dynamically, ie create a reusable button with the button’s text that is set dynamically? Answer: Use <ng-content></ng-content> tag add-...
Send message from Home component to App component by using RxJs Subject
Exercise This exercise demonstrates how to communicate a message from one component to another by using RxJs Subject. Create a home component and add 2 buttons. THe first button named ‘Send Me...
When to use BehaviorSubject
I was searching for a concrete example on when and how to use RxJs BehaviorSubect. So I found an example in a Shopping cart web application. The BehaviorSubject is used in a shopping cart service. ...
Angular Interview questions
1. Why were client-side frameworks like Angular introduced? Angular allows one to develop advanced web applications like Single-Page-Application. It makes life easier for the developers by handlin...
C# interview questions
Beginner level questions What are Nullable types? Value types that can accept a normal value or a null value are referred to as Nullable types What is (??) operator in C#? The ?? operator ...