I have a pattern or design question regarding how best to approach a problem; Ill simplify my thoughts so I dont cloud the question:
I have a simple two component, two vertical column Angular app as follows:
<div class="container-fluid">
<div class="row">
<div class="col-3">
<app-sidemenu></app-sidemenu>
</div>
<div class="col-9">
<app-content></app-content>
<router-outlet></router-outlet>
</div>
<div class="col"></div>
</div>
</div>
This whole system needs to be dynamic for scaling purposes so nothing can be static as far as content goes.
For example: The links in the side menu are being dynamically generated from a list of externally hosted .html files stored on GitHub for versioning purposes.
As you can see below, I only have a single route from the side menu elements to the content component:
const routes: Routes = [
{path: 'page:/id', component: ContentComponent}
];
Here is what I need help with:
Scenario:
I have 10 .html files externally hosted on GitHub. I need to route each menu link to each .html file and have the content of each file display in the Content Component when each menu item is clicked.
More simply described: each menu item loads the content from an externally hosted .html file into the content component.
Ive read many different options that only partially describe what Im trying to do so I really want to know if this is possible (it seems easy when I describe it) and, if so, where would I begin.
Im not looking for a quick code solution, but really a point in the right direction so I can solve this on my own and validation that Im not wasting time if there is a better way.