i want to set variable (someFlag = false/true) in JS so i can disable/enable javascript function.
I would like to do it with afterStarted(options) [described in link below].
The question is:
Is there any way to get the data from appsettings.json to function afterStarted(...). Either through options parameter or something else, doesn't matter.
Thanks.
Maybe inject IConfiguration into the blazor page?
Failing that, I create an object like ApplicationState with an interface, make that a scoped service in Program.cs, define the object's properties, then inject that interface into your blazor page:
Program.cs
blazor
Hope this helps