簡體   English   中英

如何在angular4中導入單個本地html文件

[英]How to import an individual local html file in angular4

有一個iframe:

<iframe></iframe>

另一個js會將“ src = xxx.html”動態添加到iframe標簽中。 xxx.html是本地文件,Web控制台顯示:

ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'xxx.html'

對於angular4項目,我應將單個本地html文件放在哪個目錄中?

您的xxx.html文件在哪里?

<iframe name="xxx" src="location your xxx.html files"></iframe>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM