ng if directive code example
Example 1: ngIf else
content_copy
Content to render when condition is true.
Content to render when condition is false.
Example 2: ng-if
Show when checked:
This is removed when the checkbox is unchecked.