我正在做一个 Angular 5 项目。我必须在不加载 Angular 5 js 文件的情况下显示条款和条件页面。例如 vendor 、主包、一些其他文件。
我只想显示 tc.html 文件,而不需要 Angular 路线的帮助。我在这里添加了屏幕截图。将 terms-and-conditions-en.html 放置在 index.html 下。请给我一个好的建议。
最佳答案
你应该只提供你的 html 文件。例如,您可以将其放入公共(public)文件夹并使用其名称在浏览器中打开:
localhost:3000/terms-and-conditions-en.html
关于javascript - 如何在不加载 Angular 5 js( vendor 、main.bundle 等..)文件的情况下加载 .html 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51043161/