omponentName&gt;.razor.js</strong>. When done correctly, you will see your JavaScript module and Razor component nested like this (File nesting must be turned on):</p>
<p><img src="\tutorials\legacy-contents\blazor-wasm\dotnet6\add-javascript-to-blazor-412635\collocate-js-module.png" alt="collocate-js-module.png" width="400" height="90" /></p>
<h3>Implementation</h3>
<ol>
    <li>In your component, inject the <code>IJSRuntime</code> and implement the <code>IAsyncDisposable</code> interface in the directive 