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 GroupBy in MongoDB
To group by in MongoDB, you can use the $group aggregation pipeline operator. The $group operator groups documents by a specified key or keys and applies an aggregation expression to each group. Let’s look at some examples on how to groupby in mongodb. Here’s an example of how to use the $group operator in MongoDB […]
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 […]