I am encountering an issue with my navigation bar in a project that uses Angular5 and Bootstrap4. The navigation bar is supposed to expand when the screen size is small, as indicated by the navbar-expand-sm
class in Bootstrap4. However, the navbar remains expanded at all screen sizes in my Angular5 project.
In other instances where I have tested this code outside of the Angular5 project, the navigation bar expands correctly as expected.
Given that the issue only occurs within the Angular5 project, I suspect that there may be interference between Angular5 and Bootstrap4 causing this problem.
To provide some context, the structure of my Angular project is simple, consisting of a header component and a router outlet which currently displays the home component:
Question:
Why is my navbar expanding even at large screen sizes in my Angular5 project, and what steps can I take to resolve this? Your insights would be greatly appreciated.