Currently, I am working on Angular components and I have a specific section that I would like to refactor into a separate component for reusability. Initially, when the HTML block with only Bootstrap 4 classes is placed in the parent component, the user interface displays correctly.
However, upon refactoring this section into another component, the UI breaks even though it contains only Bootstrap 4 classes.
I have experimented with different versions of ViewEncapsulation, but it has not resolved the issue. Despite setting ViewEncapsulation.None and inspecting the developer tools in Chrome, there appear to be additional classes attached to the component selector.
I am unsure of what I may be overlooking, as the classes utilized are standard Bootstrap 4 classes. It is perplexing why the UI breaks in this scenario.