.NET 7 Blazor 🔥 New & Improved Data Binding

preview_player
Показать описание


---
Table of Contents:
00:00 .NET 7 Blazor 🔥 New & Improved Data Binding
01:04 Create the Blazor WebAssembly Project
03:50 Add a New Controller Method
05:56 First Changes on the Client
07:56 Implement the "old" way
09:27 Use the new "after" modifier
11:18 New "get" & "set" modifiers in action

🙏MANY THANKS TO THESE LOVELY PEOPLE:
Ameet Jayawant
JesperNielsen
Paul
@Alaffer
Alvin Majid
Slava Ukrayini
Piotr Franczak
Jan Trichter
Tom
H. Ali
Ashley Gahl
Daniel Viveros
Mehmet Ali Ege
Winther
harry j
@Alaffer
Sam Catlow
Jim
Brian Williams
Gonzo
Jonas
Ariel Sartor
Andy Benson
@stevelikespies
Raphael Lukas
James Goforth
@williamdevine
Doug Nelson
Arif Hasanov
@kohji1712
@dlb78dlb
Thomas Korsgaard
FastTrak
Jeff Sager
Dan Moyer
AlgoMarket
Mennskr
Simon
Michael Mel
Hermann Rösch
Jim McNeal
Kieron
@mgrainger231
Gerrit Esmeijer
Axel
Kareem Skinner
Joaquim
Alain Legrand
Per Rieland
@prodrigu75
Greg
Brendan Maunder
Stageoner
Andrew Campbell
pascalditzfeld
PovilasSimanskas
jenö
Marco Otilli
Mark
l33ter
alibux
Luke Vincent
mrcl
Alain Legrand
Thomas Werner
István Csibor
Grant Burdon
@gianluigiconti
Gerrit Esmeijer
Illia
Németh-Pók István
Michael Mel
Marko Zdilar
GerryB
@DADA_universe
Domen Hren
@heroesch
Carey
Peter De Tender
Baris Keskin
@Big_Bear_27390
Mathias
walter e watkins
Günther Dassel
Axel
Josh
Daniel Huber
Fredric Adell
Juan Carlos
Manolis
Pajani
P.
Jonas Granlund
Bobby
Kristina
@xamarin007

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

The @bind:after and @bind:event sure makes it easier to read than what we had before like @oninput="@(EventCallback.Factory.CreateBinder<string>(this, newValue => MyMethod(newValue), string.Empty))"

CRBarchager
Автор

I really look forward to these new features because currently I have to do a lot of work-arounds e.g. call methods in setter-methods in order to get a similar functionality without too much effort. I am using MudBlazor and if you want to listen to change-Events (e.g. disable buttons when select-input changes) you have to override the "bind-value"-property (because that calls on-value-changed as well) and handle all the logic yourself which is pretty tedious and kinda unnecessary.

modx
Автор

I remember having to deal with the old binding mechanics two years ago, barely getting it to work and it felt like a mess
Now I'm back to Blazor, and just at the perfect time it seems. This works like a charm. Thank you!

Faygris
Автор

I really want to use Blazor WASM in production, but it can’t allocate large chunks of memory. You receive a runtime exception that, I believe, has existed for years in mono.

xamarinmaster
Автор

Maybe its because of a new update or something but
his doesnt work with a eventcallback, i used a Action instead and called InvokeAsync(StateHasChanged) manauly to update the table

fonskeee
Автор

What about real multithreading in .net 7 Blazor WASM? Do we get it finally??

neralem
Автор

How to make it send only one request when we finish typing?

androidsavior
Автор

Usually it is a good idea *not* to call the method on every input but use a debounce to only call the method after you stop typing. Otherwise you will be doing a lot of useless api calls.

grumpydeveloper
Автор

Hi,

Could you please a make a video on blazor empty solutions and create a layout and use it(please create a custom layout)

shanmukhapatil
Автор

Amazing!! Shame we only upgrade to LTS 🙁 gotta wait till .net8

_simoncurtis
Автор

In the production ready version of NET7 AT THIS END OF THE YEAR THIS DOES NOT WORK.

philibertande
Автор

If someone has a problem with @bind:after="Search" where it gives an error. Use these package references instead. [Sorry for bad, pronunciation, am not a native speaker of English]
<PackageReference Version="7.0.0-rc.2.22476.2" />
<PackageReference Version="7.0.0-rc.2.22476.2" PrivateAssets="all" />

brentdar
Автор

Hello, Thanks for the wonderful tutorial. I drop a message for you on Twitter and email Please respond accordingly

tajudeensalaudeen