Author : admin

Best practices for unsubscribing from subscriptions of Observables in Angular

When you use Observables in Angular, it’s important to make sure that you unsubscribe from them properly to avoid memory leaks. Here are some best practices for unsubscribing from subscriptions: The takeUntil operator is a common technique for unsubscribing from an Observable. You can create a subject that emits a value when the component is […]

10 best practices for creating Angular Application

In this article we will cover 10 best practices for creating Angular Application. Some samples for best practices for creating Angular Application 1: Angular Style guide. 2: Use Angular CLI 3: Use Reactive Forms 4: Lazy Loading 5: Use a state management Library 6: Use AOT Compilation 7: Use Dependency Injection 8: Use Observables 9: […]

How to Join two collections in MongoDB

To join MongoDB collections, you can use the MongoDB Aggregation Pipeline, which provides a set of operators to perform operations such as grouping, filtering, and transforming data. The $lookup operator is used to perform a left outer join between two collections. Here is an example of how to join two collections in MongoDB using the […]

How to take screenshot on Android Phone- Samsung, Redmi Note

Let’s take a look at several ways by which we can take screenshot on Android phone. If you are Samsung phone user or a Redmi note user, at times you will find a need to take a screenshot. We are listing down some steps to take screenshot on android phone. Detailed steps to take screenshot […]

How to dynamically generate images with Node.js and Canvas

Are you here to find out “How to dynamically generate images with Node.js“? Then you have come to the right place. At times we are in a situation where we need to generate dynamic images to cover the dynamic content returned from our database or any data store. Let’s say you are writing a match […]

How to Pass Data Between Components in Angular

Are you here to find how to Pass Data Between Components in Angular, then you are at the right place. In this article, we will discuss different ways of passing data between components. Angular is ideal for creating business apps, e-commerce apps, mobile apps with engaging animations, and progressive web apps that function offline, and […]

How to Download a file in NodeJS- ExpressJS?

Downloading a file is a common requirement when working with applications. At times you want some user data formatted in the desired format to be downloaded and provided to the user. We will provide code to download files in node js using express. Code to download file in express JS NodeJS The above file can […]

Scroll to top