The Wayback Machine - https://web.archive.org/web/20240920155428/https://angular.dev/api/common/NgIf/
@angular/common

NgIf

directive

A structural directive that conditionally includes a template based on the value of an expression coerced to Boolean. When the expression evaluates to true, Angular renders the template provided in a then clause, and when false or null, Angular renders the template provided in an optional else clause. The default template for the else clause is blank.

  
    class NgIf<T> {}
  
  
Jump to details
HTTPS · web.archive.org
← Home