Looking for ways to shorten my code for better readability. I have multiple ngIf statements with various conditions for numbering lists (e.g., 1, 1.1, 1.1.1)
Here is a snippet of the code from my template:
<span *ngIf="...">{{...}}.</span>
...
<span *ngIf="...">...</span>
This code block will be repeated in other columns with additional interpolation, making it lengthy and repetitive throughout my project.
Any suggestions on how to optimize this code? Your input is appreciated!