Angular2 *ngIf takes time for buttons to disappear

This is just a note
When using Angular's *ngIf verb the element that it is supposed to hide can be still visible for several milliseconds
(enough for the user to see it going away)

Example of problematic code:

<div *ngIf="(!list?.is_public || isAdmin()) && !isInSuper">

This is because the "list" item is null at start (we use the "?" to prevent the NullPointerException)
To solve this issue use this format (add list!=null check)

<div *ngIf="(list!=null && !list?.is_public || isAdmin()) && !isInSuper" >