0

Approve and Publish Important! You're about to approve dustry Formile Deliverable Content to render when condition is true. -->

div class="form-group"

Shivani
  • 3
  • 2
  • 2
    Does this answer your question? [How can I use "\*ngIf else"?](https://stackoverflow.com/questions/43006550/how-can-i-use-ngif-else) – Krunal Shah Feb 24 '22 at 11:10

2 Answers2

1

You can use like this:

<div class="form-group" *ngIf="your condition"></div>
lucky930
  • 86
  • 5
1

if you use simply if condition

<div *ngIf="condition">
   Condition content
</div>

if you use if with else condition

<div *ngIf="condition; else secondCondition">
   Condition content
</div>

<ng-template #secondCondition>
  secondCondition content
</ng-template>
Aman Sharma
  • 933
  • 1
  • 4
  • 12