'ngIf' is an Angular core directive that toggles the presence of the targeted element in the DOM. Do not use this tag for the 'ng-if' directive in the older AngularJS version.
ngIf
is an Angular directive that alters the targeted element.
From the documentation:
Conditionally includes a template based on the value of an expression.