Route Guards determine whether to allow or deny navigation within Angular application. There are 4 types of routing guards in Angular: CanActivate Determines if a route can be activated CanActivateChild If route children can be activated … [Continue reading] about Router Guard in Angular
Using dotnet publish command
The dotnet publish command compiled the dotnet core application and writes the output to a folder.The contents of this folder could be deployed.So effectively dotnet publish command publishes the compiled output along with the application … [Continue reading] about Using dotnet publish command
ASP.NET Core dependency injection
What is Dependency Injection in ASP.NET Core ASP.NET Core provides a simple prebuilt DI container.We need to register the dependencies in this container.Dependencies could be the custom classes or the framework classes Once you have registered the … [Continue reading] about ASP.NET Core dependency injection
Creating WebAPI in ASP.NET Core
What is WebAPI WebAPI in .NET Core is used for creating RESTful services.WebAPI in .NET Core is a class which derives from the ControllerBase class.This is unlike MVC controller which derives from Controller class.Controller class adds support for … [Continue reading] about Creating WebAPI in ASP.NET Core
Overview of Entity Framework Core
When working in any application a common requirement is accessing the database.Writing the database access code could be tedious,as you need to take care of multiple things such as: Implementing logic for connecting to database Writing SQL … [Continue reading] about Overview of Entity Framework Core