Framework: .NET Core 3.1 (Blazor WebAssembly)
I have just scaffolded a simple Blazor WebAssembly app, and added multiple pages.
On redirection to the specific page, I want to update the window/tab title to [Page Name] | My App
.
In ASP.NET MVC or Core, we could use the ViewBag
to update the <title>
element in Layout.cshtml
.
What would be the equivalent approach in Blazor WebAssembly app?
Thanks.
IJSRuntime
? – Vaibhav