Author: Marinko Spasojevic

SOLID Principles in C# – Single Responsibility Principle

While developing a project, we strive to write maintainable and readable code (beside the working part 😀 ). To accomplish this, each and every class should do its own task and do it well. Yes, it is quite important for a class to have no more than one task. If it does, our code becomes harder to maintain, due to the fact that it is responsible for the execution of several different tasks and thus being more likely to change in the future. This is completely opposite of what the Single Responsibility Principle (SRP) states. The Single Responsibility Principle...

Read More

Uploading Files With .NET Core Web API and Angular

Being able to upload files and use them afterward is the required feature of many applications. Sometimes this is not a trivial task to accomplish. So, this is going to be the topic for this blog post. We are going to upload files to the server (.NET Core Web API part) and then to use those files in our Angular client app. In this post, we will stick to the images, but the logic is reusable for other file types as well. ASP.NET Core Authentication with JWT and Angular  .NET Core Tutorial ASP.NET Core Web API with EF Core...

Read More

.NET Core with SignalR and Angular – Real-Time Charts

SingalR is a library which helps us provide real-time web functionality to our applications. This means that our server can push data to any connected client as soon as that data is provided, in a real-time, and vice verse. In this article, we are going to show you how to use SignalR with .NET Core and Angular through the practical example. We are going to simulate a real-time data flow by using the Timer class in .NET Core and use that data to change states of our Angular charts in real time as well. For this example, we are going to...

Read More

Angular Material Form Validation, Input, Datepicker and Modal

One of the most important components in Angular Material is the input component. Angular Material supports different types of input elements like color, date, email, month, number, password, etc. In this article, we are going to use the input components to create a Create-Owner component and use it to create a new Owner object in our database. Of course, we will show how easy it is to apply Angular Material Form Validation with the material input components and also how to create dialogs to show the error or success messages. We won’t dive deeply into the validation logic because...

Read More

Angular Material – Error and Details Pages With Material Components

In this article, we are going to create the error pages and the details component. The main focus will be on the material components. We are going to create the Not-Found component, the Server-Error component, and finally the Owner-Details component. Through these components, we will learn how to use different Angular Material components in our project. Getting started with Angular Material Navigation Menu – Sidebar, Main Navigation Angular Material Table, Filter, Sort, Paging Angular Material Progress Bar, Spinner, CheckBox, Card, Select, Expansion Panel (Current article) Material Inputs, DatePicker, Form Validation, Modals This article is part of the series For...

Read More