From the course: Learning ASP.NET Core: MVC, Razor Pages, Web APIs & Other Foundations
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Developing a Blazor application
From the course: Learning ASP.NET Core: MVC, Razor Pages, Web APIs & Other Foundations
Developing a Blazor application
- [Instructor] Let's now walk through the new Blazer project I created in the previous movie and see how it's similar and different to some of the other asp.net core projects we've already looked at in the course. Let's start with the Program.cs file. The contents of this file should look pretty familiar by now even though some of the specifics vary depending on the project type. There are just a couple of lines in here that I want to specifically call out related to Blazer. The first is the call to AddRazorComponents on line six. The components that make up Blazer apps are officially known as Razor components. However, you may occasionally hear people also refer to them as Blazer components. The call to AddRazorComponents adds the services required to use them. The project template also already chained on a call to AddInteractiveServerComponents. That's a result of me taking the default value of server for the interactivity option I showed you in the previous movie. It configures the…