Author: Marinko Spasojevic

.NET Core 2.0, Angular and MySQL. Form Validation

In the previous post, we have created our child modal components and a directive. Now it’s time to use them in our project. Creating a new owner and using our child components and directives is our goal in this post. If you want to see all the basic instructions and complete navigation for the .NET Core series, check out the following link: Introduction of the .NET Core series. Angular Project Preparation Navigation and routing HTTP, Services and environment files Lazy load, showing data on a page Error handling Child components, @Input, @Output, directive Create owner entity and Reactive Form Validation (Current...

Read More

Angular – Angular Input Output Decorators & Directives – Code Maze

Angular Input Output decorators are very important while establishing a relationship between parent and child components in our applications. While developing our project, sometimes our components may become large and hard to read. So, it is always a good choice to split that big component into a few smaller ones. Furthermore, smaller components can be reused into other components, therefore creating the parent-child relationship is a very good idea. Child component depends on the parent component, and because of that, they make one coherent part. Creating child components by using Angular Input Output decorators is going to be our...

Read More

Angular – How To Handle Errors with Angular Error Handling

While sending requests to our web API server, we can get an error in response. Therefore, using Angular Error Handling to handle those errors while sending HTTP requests is a must. That’s exactly what we are going to do in this post. If we get the 404 or the 500 error, we are going to redirect the user to a specific page. For other errors, we are going to show an error message in a modal form. The page that handles the 404 error is already created, so, let’s continue on by creating 500 (Internal server error) component. If...

Read More

Angular – Angular Lazy Loading

As a continuation to a previous post (in which I’ve shown you how to use subscription), we are now going to implement that subscription to our HTTP requests in order to display the data on the page. Furthermore, we are going to use the advantage of  Angular Lazy Loading, by using another module in our application – the owner module. If you want to see all the basic instructions and complete navigation for the .NET Core series, check out the following link: Introduction of the .NET Core series. Angular Project Preparation Navigation and routing HTTP, Services and environment files Lazy load, showing data...

Read More

Angular – HttpClient, Services and Environment Files

While sending HTTP requests towards our server, we need to use the Angular HttpClient. Of course, we may handle all the HTTP requests from every component and process the response as well, but it is not a good practice. It is much better to make the repository for your requests and then send the request URL to that repository. The repository should take care of the rest. How do we achieve this? That’s the topic of this blog post. If you want to see all the basic instructions and complete navigation for the .NET Core series, check out the following link: Introduction...

Read More