Get unique values from Array in Angular , ANGULAR WITH CORE .NET AND MVC RAZOR ENGINE In this article, we will learn how to remove duplicate items from Array in Angular Playing with the array is very common in any programming language. Very often we faced a situation where we need to remove duplicate items from Array. so here we will learn 3 different ways to remove duplicate items from Array Step 1 : By using Set GetUniqueItemsBySets() { this.uniqueItemsbySets = [...new Set(this.duplicateArray)]; } Step 2 : By foreach GetUniqueItemsByForeach() { this.duplicateArray.forEach(items => { if (!this.uniqueItemsbyForeach.includes(items)) { this.uniqueItemsbyForeach.push(items); } }); } Step 2 : By filter GetUniqueItemsByfilter() { this.duplicateArray.filter(items => { if (this.uniqueItemsbyfilter.indexOf(items) === (-1)) {...
What is the Difference Between Razor and Blazor, ANGULAR WITH CORE .NET AND MVC RAZOR ENGINE Blazor Blazor enables sharing code across client- and server-side processes, server-side rendering functionality, and more. When building a single-page application, Angular or React are popular JavaScript frameworks to use. Blazor is a framework for building interactive client-side web UI with .NET: · Create rich interactive UIs using C# instead of JavaScript. · Share server-side and client-side app logic written in .NET. · Render the UI as HTML and CSS for wide browser support, including mobile browsers. · Integrate with modern hosting platforms, such as Docker . ...
Logging and Error Handling | Exception Handling , ANGULAR WITH CORE .NET AND MVC RAZOR ENGINE Logging and Error Handling | Exception handling Mechanism Application logging plays a crucial role in tracking and identifying issues that may surface as well as in providing useful insights into the workflow processes of solutions. When things go wrong, one of the first sources to look at is the application’s log. Depending on the number of details that are logged, each entry represents an action that occurred at a specific date and time. Logs can contain system-generated events as well as events explicitly defined by the developer and are usually grouped into categories like errors, informational, and warning. Application logs are application-specific, hence the name, and do not often include OS-specific events. Let's begin Adding Logging Logging can be used anywhere in ASP.NET Core, and to create a log we merely need to...
Awesome content on this blog, it saves my day
ReplyDelete