我有一个使用 Materialise 的 AngularJS 应用程序,我有一个名为:reports 的模块,然后有一个名为:reports.html 的 View ,我将在其中放置所有报告。问题是我不想将报告的所有代码放入 reports.html 中,我想使用多个 .html 文件对其进行模块化,例如:report1.html、report2.html、report3.html。我该如何执行此操作以在 reports.html 中包含或使用该文件(不使用 iframe)并将参数传递给该 View (reports.html)?
谢谢。
最佳答案
如果你使用的是 angular.js,你不能只使用 angular include在您的 /reports.html
中?
<div ng-include="'reports2.html'"></div>
关于javascript - 我可以使用 Materialise 在 View 中处理多个 .html 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42793619/