Javascript 为什么在angular中使用插件后html不显示?
我使用这个插件,并遵循所有步骤,但我的输出没有显示为什么? 这是我的密码Javascript 为什么在angular中使用插件后html不显示?,javascript,angular,Javascript,Angular,我使用这个插件,并遵循所有步骤,但我的输出没有显示为什么? 这是我的密码 从一个新的ng应用程序开始,按照说明,ngx graph网站上的示例对我很有用。您确实在项目文件夹中运行了npm init,然后npm install@swimlane/ngx graph?这很奇怪。。我在本地没有看到任何问题,但我无法在stackblitz上运行。 <ngx-graph class="chart-container" [view]="[500, 200]" [links]="[
从一个新的ng应用程序开始,按照说明,ngx graph网站上的示例对我很有用。您确实在项目文件夹中运行了npm init
,然后npm install@swimlane/ngx graph
?这很奇怪。。我在本地没有看到任何问题,但我无法在stackblitz上运行。
<ngx-graph
class="chart-container"
[view]="[500, 200]"
[links]="[
{
id: 'a',
source: 'first',
target: 'second',
label: 'is parent of'
}, {
id: 'b',
source: 'first',
target: 'third',
label: 'custom label'
}
]"
[nodes]="[
{
id: 'first',
label: 'A'
}, {
id: 'second',
label: 'B'
}, {
id: 'third',
label: 'C'
}
]"
>
</ngx-graph>