Video – Partial Type in TypeScript

This video explains Partial Type in TypeScript. interface IProduct { name: string; price: number; } function SaveProduct(product: Partial<IProduct>) { console.log(product.name); console.log(product.price); } SaveProduct({ name: “Laptop”, price: 1000 }); SaveProduct({ name: “Mobile”, price: 500 }); SaveProduct({ name: “Tablet”}); https://www.youtube.com/watch?v=q5wE_QjBtVU

Reading Request Headers Across Multiple .NET Core API Controllers

I was working on creating a .NET Core-based API and came across a requirement to read a particular request header across the API controllers.  To understand it better, let us say there are two API controllers, InvoiceController ProductController We need to read the value of a particular Request Header in both controllers. To do that,ContinueContinue reading “Reading Request Headers Across Multiple .NET Core API Controllers”

JavaScript Interview Ep # 1 – What is function expression and declaration

There are three ways a JavaScript function can be created. They are as follows: Function declaration Function expression Arrow function When you create a function as a declaration or statement, it gets hoisted at the top of the execution context and can be used before it is made. Example below: console.log(Foo()); function Foo(){ return “ReturnedContinueContinue reading “JavaScript Interview Ep # 1 – What is function expression and declaration”

Passing Route Data as Component Input in Angular

Angular 16 is packed with many exciting features. You can read some of them here: Angular 16 Introduction What is the purpose of the Second Parameter in creating an Angular Signal? Required @Input properties in Angular In this blog post, we will learn about- Passing Route Data as Component Input, one of the features ofContinueContinue reading “Passing Route Data as Component Input in Angular”

Standalone Component – Recording of ng-India 2023 Talk

Every Angular developer must get familiar with Standalone API and should learn to build an Angular app without using any module. In India’s Largest Angular Conference, ng-India 2023, I delivered as talk on the same. watch the recording of the talk here. In the last do not forget to watch chatGPT demo. If you preferContinueContinue reading “Standalone Component – Recording of ng-India 2023 Talk”

Getting Started with Qwik

As I write this blog post, Qwik Version 1.1 has been announced.  You can learn about the announcement here. https://www.builder.io/blog/qwik-v1 Repository –  https://github.com/BuilderIO/qwik This post does not discuss the advantages of the Qwik framework, such as Resumebility, Reactivity, etc., as there are already many discussions on the web. Instead, in this post, directly, you willContinueContinue reading “Getting Started with Qwik”

Hello Angular 16

On 3rd May 2023, Angular 16 is launched.  Some of the essential features of Angular 16 are, Improved standalone APIs Angular Signals takeUntillDestrory RxJS operator DestroyRef as an injectable provider Required input properties for directives Passing router data as a component input Self-closing tags ES Build support Nondestructive hydration for SSR Unit Testing with JestContinueContinue reading “Hello Angular 16”