Author: Marinko Spasojevic

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

Angular – Navigation and the Angular Routing

One of the every web application’s main features is navigation, and to enable it in our project, we need to use routing. The Angular Router enables navigation from one view to the next as users perform application tasks. In our navigation menu, we are going to have three menu options: one for the home screen, another one for the owner operations and the last one for the account operations. Hopefully, this will help you realize the advantages of using multiple modules inside a project and how the lazy content loading helps your application perform better. If you want to see all...

Read More