Developing the presentation layer using ASP.NET Core and Angular

In this chapter, we will use ASP.NET Core and Angular on the presentation layer. We will use ASP.NET Core MVC (Model View Controller) to define views and load them through the routing module dynamically into the main single page container.

There are many benefits of using ASP.NET MVC view with Angular routing. Some of them are as follows:

  • We can use ViewBag to define additional properties at runtime
  • It provides a secure Action method through AuthorizeAttribute
  • We can implement logging using custom Action filters or by injecting ILogger<T> at the controller level

To start with, open Visual Studio 2015 and select the ASP.NET Core Web Application (.NET Core) project template to create a new project and name it EA.TMS.WebApp:

When you build your project, it will start restoring the packages.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.168.203