I have four tabs and the fourth one need to be displayed based on whether an API response is present or not. So I am using the following code.
<li *ngIf="notifications.length !=0">
<a data-toggle="tab">Notifications</a>
</li>
So the problem with this is , it has a delay when before displaying the Notifications tab, if notifications response is present. The other tabs are rendered first and then after a small delay the notifications tab is rendered. How can I avoid this delay and show all the four tabs at the time of page loading ?