How to Use Data Bindings in Blazor C# .Net 5 Preview

preview_player
Показать описание
We look at how to create data bindings for primitives, classes and click events that pass parameters in a C# Blazor app using .Net 5 Preview. We build out the base of a new component in the Tour of Heroes app.
timestamps

0:00 Intro
0:29 Basic Blazor Binding
1:40 Page Cleanup
3:28 Create a Blazor Component
6:45 Create a Model to Bind Properties to
8:10 Using the Property for Binding
9:35 Using C# code in our Blazor HTML
10:41 Two Way Blazor Data Binding

Get 2 FREE Audio Books from Audible

My Favorite Books on Coding, Devops, and Leadership

Gear Used
Intel Core i5-10600KF - 8GB Memory - NVIDIA GeForce GTX 1660 SUPER - 1TB HDD + 240GB SSD

Davinci Resolve - Editing
StreamLabs OBS - Screen Capture

Рекомендации по теме
Комментарии
Автор

Just a heads up, since Blazor Web Assembly is now released, when you go to add the Heroes component, you will need to ensure the razor file ends in the word Component, so I named it HeroComponent.razor, and that is when it finally worked for me. For component classes under the Components folder, Blazor is enforcing this naming convention in order for the Components to render when you reference them in your pages. This one took me a few minutes to figure out why it wasn't working.

azbyaz
Автор

Hi, thank you for this video.
Why aren't you using "arrow up" in the console?

arkadii_kuznetsov
Автор

Started really well but then uses VS code that nobody uses and everything is so dark and boring... not explaining what he's doing and just coding and coding more...

sipi