Open
Description
Currently, to load a component specific script (.razor.js) you do something like this:
module = await JS.InvokeAsync<IJSObjectReference>("import", "./{PATH}/JsCollocation2.razor.js");
The "import"
convention is a bit awkward to remember and you also need specify the script path. Could we make this simpler? Maybe provide an ImportAsync overload? Or maybe a declarative model, like this (suggestion from @DamianEdwards)?:
[JsModuleImport]
private IJSObjectReference? Module { get; set; }
@MackinnonBuck did some prototyping for component specific styles that work across render modes a while back that might also be worth considering: MackinnonBuck/blazor-js-components