It's quite unexpected that the formatting I apply is not being accepted. When I insert it within the index, everything looks perfect:
<main role="main" class="container-fluid">
...
</main>
The design displays correctly with "ABC" positioned on the right side. However, when I move the code to app.component.html, the formatting appears all distorted. Initially, I thought setting display:block;
might solve the issue, but it didn't work as expected.
For more insights on this matter, you can refer to this article: Bootstrap style not working against Angular2 components.
To see the problem in action, visit: https://stackblitz.com/edit/angular-lnutdw.