I put simple code about my problem to find solutions easier, here is my code :
<div class="loading" *ngIf="!numberFromBack"></div>
so the variable named numberFromBack is a number that server send it to client and it can have values such as : 0 , 1 , 2 , ... and i want to display the loading div when the numberFromBack is null, but i have weird problem , some time the variable has numerical value but *ngIF find it false and with ! before it , changed to true... i need the opposite of this scenario !