Author: Marinko Spasojevic

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

Angular – Angular Project Preparation

Angular project preparation can vary from project to project and from version to version, and this article is dedicated to that topic. Creating the server part (.NET Core Web API part) is just half of the job we want to accomplish. From this point onwards, we are going to dive into the client side of the application to consume the Web API part and show the results to the user by using angular components and many other features. If you want to see all the basic instructions and complete navigation for the .NET Core series, check out the following link: Introduction of...

Read More