Blazor .NET 5 - JavaScript Isolation - JavaScript Files per Component (Finally!)

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

We can load specific JavaScript files from razor components by importing them as JavaScript modules.

----------------
Other courses:

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

Congratulations!
Thanks for the simple but assertive explanation.

valterleimuryviana
Автор

@3:48 oh my gosh, thank you, I was struggling with "{function} is undefined" for like an hour and a half. I got everything else, importing from a separate class library (just do "./_content/", then start the name of your CL and so on), but I swear that export part is in none of the documentation, haha. Now I can do razor.js files whenever I need to, woohoo!

ATrevorWaters
Автор

Thanks for sharing.
What if, in the project, there are several js files, and each component needs to use them,
your solution is for a js file including two simple functions, what if the files are more than 20 and each component needs to use them that is different from other components, now how to reference those files to that component?

Thanks in advance

shahabjoon
Автор

Thanks, so how do we load maps like google map or open street map, is there any component that is free?

galaxiegalaxion
Автор

Is there a way that multiple JS files can be imported?

ranshikaalfred
Автор

Simplest and best explanation I was able to find. Thank you! However I think .NET RC2 changed this process slightly. If possible can you add an update, or maybe some popup text showing the change to using IJSObjectReference instead of JSObjectReference?

benjamininkorea
Автор

Can you do a series that shows how to use Telerik UI for Blazor with Blazor WebAssembly & Blazor Server ?

nelsonrivers
Автор

Would it by any chance be possible for you to demonstrate Google authentication in a blazor webassembly app? Been scratching my head with it for a week 😔

dannythomas
Автор

thanks man ...
when input change via javaScript variable in C# code will not update ... please make video for resolve this issue ...

mrAbbas
Автор

It doesn't recognize JSObjectReference??

Error CS0246 The type or namespace name 'JSObjectReference' could not be found (are you missing a using directive or an assembly reference?)

superhesk