* ngFor导致子组件损坏

我已经创建了一个自定义轮播组件,但对于在父组件中使用ngFor为什么不起作用,我有些困惑。

是否有更好的方法来解决此问题?

这有效

不在父组件中使用ngFor:

@echo off

REM Cd into the desired working directory
CD /D "C:\Path\To\Cwd"

REM Execute external programs like pdflatex:
C:\Full\Path\To\pdflatex.exe -halt-on-error -output-format=pdf file.tex

输出:

* ngFor导致子组件损坏

这不起作用

在父组件中使用ngFor:

spawn ();

输出:

* ngFor导致子组件损坏

子组件保持不变

在子组件中:

spawn ();
iCMS 回答:* ngFor导致子组件损坏

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2088177.html

大家都在问