Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Two ways data binding - nothing happens

$
0
0

I am using .NET 8 and created a Blazor application (WebAssembly) and placed the following markup and code in Home.razor:

<input @bind="Title" /><h2>Hello, @Title</h2>@code {    private string Title { get; set; } = string.Empty;}

And I don't see any changes when I write something in the input, why?

enter image description here

My code is almost the same like here:

https://www.learnblazor.com/data-binding

and here:

https://www.pragimtech.com/blog/blazor/blazor-two-way-data-binding-example/

Here is the film:https://imgur.com/a/QqRKS3D

The solution: create Blazor STANDALONE application


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>