I’ve been learning both asp.net core and angular, however I am a bit confused on what asp.net core razor pages are. I know that angular is a front-end framework to build dynamic applications and I know asp.net core is for the server side. However asp.net core also includes razor pages (.cShtml) that lets you write html code and also insert c# into it. Razor pages can also include partial views and so on but can you build a full website without using anything like react or angular and still have the same dynamic pages ? If I do use angular for the front end, are you able to still have the validation that comes from c# for forms and so on ?
Yes, you can build a dynamic site using Razor pages, You can use do like so
@foreach (var item in itemList)
{
<p>@item</p>
}
If you decide to use angular, I would assume you will have a steeper learning curve and it will be harder to learn short term however to answer your second question, yes you can use the built in authentication by storing a JWT token and passing it in the headers for each request you make to the server
Edit: Angular 2+ is much better in my opinion as you have more flexibility in what you do but it has a lot more overhead work needed whereas razor will be quicker in the short term but will struggle with scale-ability