As someone who is currently self-studying HTML and proficient in CSS and JS, with the ability to use Bootstrap, I am venturing into using front-end frameworks for the first time. English is my second language.
Angular CLI: 17.3.3
Node: 20.11.1
Package Manager: npm 10.2.4
Upon researching, I discovered that Angular 17 is components based.
My objective is to build a single-page application consisting of 5 pages. Each page will have 5 or 6 different parts such as paragraphs, tables, cards, etc., all sharing the same header and footer.
To simplify, let's say I plan to create an SPA with:
2-a. two pages
2-b. each page containing two different paragraphs - totaling four paragraphs
2-c. shared header and footer
I have learned how to create the shared header and footer, as well as how to make the navbar functional by routing each tab to a specific component.
The issue at hand: I aim to create separate components for each paragraph, resulting in a total of four components (two for each page).
How can I configure the router to display two different components (c1, c2 on the first page, and c3, c4 on the second page) within one page?