AngularCliMiddlewareExtensions.UseAngularCliServer Method

Definition

Handles requests by passing them through to an instance of the Angular CLI server. This means you can always serve up-to-date CLI-built resources without having to run the Angular CLI server manually.

This feature should only be used in development. For production deployments, be sure not to enable the Angular CLI server.

public:
[System::Runtime::CompilerServices::Extension]
 static void UseAngularCliServer(Microsoft::AspNetCore::SpaServices::ISpaBuilder ^ spaBuilder, System::String ^ npmScript);
public static void UseAngularCliServer (this Microsoft.AspNetCore.SpaServices.ISpaBuilder spaBuilder, string npmScript);
static member UseAngularCliServer : Microsoft.AspNetCore.SpaServices.ISpaBuilder * string -> unit
<Extension()>
Public Sub UseAngularCliServer (spaBuilder As ISpaBuilder, npmScript As String)

Parameters

spaBuilder
ISpaBuilder

The ISpaBuilder.

npmScript
String

The name of the script in your package.json file that launches the Angular CLI process.

Applies to