I am working with a code block that looks like this:
<div class="col-md-12">
<div class="row">
<ng-template dynamicComponents></ng-template>
</div>
</div>
The dynamicComponents
directive is used to inject dynamic components.
Although the application is fully Bootstrap-compatible, I have encountered an issue where the dynamically injected components are not displaying correctly or taking up the full width as expected. I have even tried using
encapsulation: ViewEncapsulation.None
, but it has not resolved the issue.
Please see the screenshots below for reference:
https://i.sstatic.net/68sye.png
Everything appears fine until the row
class, which takes up the full width. However, when a dynamic component named
app-from-builder-components-editor
is injected, it disrupts the Bootstrap properties, resulting in the following display:
https://i.sstatic.net/yiKS3.png
What steps can I take to ensure that the Bootstrap properties work correctly?