From the course: Blazor: Getting Started
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Basic Razor overview - Blazor Tutorial
From the course: Blazor: Getting Started
Basic Razor overview
- [Instructor] One of the main parts of Blazor is creating webpages in Razor. Razor is a way to build HTML dynamically, by combining HTML, code, and markup into a single file. The output of that file is a class that is focused on writing text output, resulting in HTML that the browser is interpreting. There's a lot more to Razor than we're going to show here, but I want to go through some of the basics that pertain to the course. Get a more complete picture from the documentation at this link. Blazor doesn't fully support everything in Razor. Blazor's Razor is a subset of Razor proper, but a fairly large subset. It isn't common to run into functionality in Razor that isn't in Blazor. Let's open 'RayList.razor' from the client pages. By default, Razor is rendering the text of the file directly, so if you have some HTML tags, they output straight to HTML without being parsed or executed. For example, this…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.