<ng-template
#cond1>Template
Cond1 - This is the 1st condition and its valid.</ng-template>

<ng-template
#cond2>Template
Cond2 - This is 2nd condition and its not valid.</ng-template>

</div>

In the above code (user.component.html),
I created a variable “isAciveFlag =
true” and the value is “true”. The
value is “true” that means the first condition is “true” and the result printed to “Template Cond1 - This is the 1st
condition and it’s valid.”