Skip to content

Commit bb21037

Browse files
authored
Drop BWA coverage from JS-SPA article (#33223)
1 parent 44cbbc9 commit bb21037

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

aspnetcore/blazor/components/js-spa-frameworks.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ uid: blazor/components/js-spa-frameworks
1414

1515
This article covers how to render Razor components from JavaScript, use Blazor custom elements, and generate Angular and React components.
1616

17+
> [!NOTE]
18+
> We recommend using the `blazor.server.js` (Blazor Server) and `blazor.webassembly.js` (Blazor WebAssembly) scripts when integrating Razor components into an existing JavaScript app until better support for the `blazor.web.js` (Blazor Web App) script is added in the future. For more information, see [RegisterCustomElement stopped working in Blazor 8 (`dotnet/aspnetcore` #53920)](https://github.com/dotnet/aspnetcore/issues/53920#issuecomment-2261507850).
19+
20+
<!-- DOC AUTHOR NOTE: The `blazor.web.js` (Blazor Web App) portions of
21+
this article have been commented out for the time being to
22+
facilitate reconstituting the guidance later when support lands. -->
23+
1724
## Angular sample apps
1825

1926
<!-- UPDATE 9.0 Add migration instructions cross-link to .NET 9 -->
@@ -54,6 +61,8 @@ One or more initializer functions can be created and called by different compone
5461
5562
The following example demonstrates the dynamic registration of the preceding `Quote` component with "`quote`" as the identifier.
5663

64+
<!-- HOLD
65+
5766
:::moniker range=">= aspnetcore-8.0"
5867
5968
* In a Blazor Web App, modify the call to <xref:Microsoft.Extensions.DependencyInjection.ServerRazorComponentsBuilderExtensions.AddInteractiveServerComponents%2A> in the server-side `Program` file:
@@ -69,7 +78,7 @@ The following example demonstrates the dynamic registration of the preceding `Qu
6978
7079
:::moniker-end
7180
72-
:::moniker range="< aspnetcore-8.0"
81+
-->
7382

7483
* In a Blazor Server app, modify the call to <xref:Microsoft.Extensions.DependencyInjection.ComponentServiceCollectionExtensions.AddServerSideBlazor%2A> in the `Program` file:
7584

@@ -81,8 +90,6 @@ The following example demonstrates the dynamic registration of the preceding `Qu
8190
});
8291
```
8392

84-
:::moniker-end
85-
8693
* In a Blazor WebAssembly app, call <xref:Microsoft.AspNetCore.Components.Web.JSComponentConfigurationExtensions.RegisterForJavaScript%2A> on <xref:Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHostBuilder.RootComponents> in the client-side `Program` file:
8794

8895
```csharp
@@ -179,6 +186,8 @@ Using a [JavaScript initializer](xref:blazor/fundamentals/startup#javascript-ini
179186

180187
`wwwroot/{PACKAGE ID/ASSEMBLY NAME}.lib.module.js`:
181188

189+
<!-- HOLD
190+
182191
:::moniker range=">= aspnetcore-8.0"
183192
184193
For a Blazor Web App:
@@ -198,6 +207,8 @@ For a Blazor Server or Blazor WebAssembly app:
198207
199208
:::moniker-end
200209
210+
-->
211+
201212
```javascript
202213
export function afterStarted(blazor) {
203214
let targetElement = document.getElementById('quoteContainer2');
@@ -260,6 +271,8 @@ The following examples are based on the `Counter` component from the Blazor proj
260271

261272
:::moniker-end
262273

274+
<!-- HOLD
275+
263276
:::moniker range=">= aspnetcore-8.0"
264277
265278
### Blazor Web App registration
@@ -290,7 +303,9 @@ builder.Services.AddRazorComponents()
290303
291304
:::moniker-end
292305
293-
:::moniker range=">= aspnetcore-7.0 < aspnetcore-8.0"
306+
-->
307+
308+
:::moniker range=">= aspnetcore-7.0"
294309

295310
### Blazor Server registration
296311

@@ -317,10 +332,6 @@ builder.Services.AddServerSideBlazor(options =>
317332
});
318333
```
319334

320-
:::moniker-end
321-
322-
:::moniker range=">= aspnetcore-7.0"
323-
324335
### Blazor WebAssembly registration
325336

326337
Take the following steps to register a root component as a custom element in a Blazor WebAssembly app.

aspnetcore/blazor/javascript-interoperability/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Further JS interop guidance is provided in the following articles:
3232

3333
## Compression for interactive server components with untrusted data
3434

35-
<!-- Doc author note: This content is also in an INCLUDE file at
35+
<!-- DOC AUTHOR NOTE: This content is also in an INCLUDE file at
3636
blazor/includes/compression-with-untrusted-data.md because the
3737
text is used in a warning format in two articles. -->
3838

0 commit comments

Comments
 (0)