Search code examples
javascripthtmlangularjsmaterialize

Can I work with multiple .html in a view using Materialize?


I have an AngularJS application using Materialize, I have a module named: reports, then there's a view named: reports.html where I will put all my reports. The problem is that I don't want to put all the code of the reports inside reports.html, I want to modularize it using multiple .html files like: report1.html, report2.html, report3.html. How can I do this to include or use that files inside reports.html (without using iframes) and passing parameters to that view (reports.html)?

Thanks.


Solution

  • If you are using angular.js can't you just use an angular include within your /reports.html?

    <div ng-include="'reports2.html'"></div>