if angularjs code example
Example 1: if angular
<div *ngIf="condition">Content to render when condition is true.</div>
Example 2: ng-if
<label>Click me: <input type="checkbox" ng-model="checked" ng-init="checked=true" /></label><br/>
Show when checked:
<span ng-if="checked" class="animate-if">
This is removed when the checkbox is unchecked.
</span>