我已经创建了一个自定义轮播组件,但对于在父组件中使用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:
spawn ();
输出:
子组件保持不变
在子组件中:
spawn ();