I have the following HTML-Code with two unordered lists (ul):
<ul class="navbar-nav mr-auto" >
<!-- some code A here -->
</ul>
<ul class="navbar-nav ml-auto" >
<!-- some code B here -->
</ul>
Now, I want to change this under some condition to
<ul class="navbar-nav mr-auto" >
<!-- some code A here -->
<!-- some code B here -->
</ul>
Would it be possible to remove the closed ul-Tag of the first list and the opening ul-Tag of the second list with a conditional comment in angular? Can I create a label in the typescript-code which I can use in a conditional comment? Or is there another solution to solve my problem?
the "some code A & B" is a large code and I want duplicate it.