builder.RootComponents.RegisterCustomElement("expression-box");
а со стороны угловой компонент выглядит так
Код: Выделить всё
Hello from Angular!
Код: Выделить всё
const target = "http://localhost:5280/"
const PROXY_CONFIG = [
{
context: [,
"/_content",
"/_framework",
"/_blazor",
],
proxyTimeout: 3000,
target: target,
secure: false,
headers: {
Connection: 'Keep-Alive'
}
},
{
context: [
"/_blazor"
],
target: target,
secure: false,
ws: true,
logLevel: "debug"
}
];
module.exports = PROXY_CONFIG;
Код: Выделить всё
@inject IJSRuntime JSRuntime
Status: Connected
Код: Выделить всё
await JSRuntime.InvokeAsync("import", "_content/BlazorMonaco/jsInterop.js");

но в angular этих вещей нет, может в этом что-то есть.
Подробнее здесь: https://stackoverflow.com/questions/793 ... javascript