/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { TemplateRef, ViewContainerRef } from '@angular/core'; /** * Removes or recreates a portion of the DOM tree based on an {expression}. * * If the expression assigned to `ngIf` evaluates to a falsy value then the element * is removed from the DOM, otherwise a clone of the element is reinserted into the DOM. * * ### Example ([live demo](http://plnkr.co/edit/fe0kgemFBtmQOY31b4tw?p=preview)): * * ``` *
* * {{errorCount}} errors detected *
* ``` * * ### Syntax * * - `
...
` * - `
...
` * - `` * * @stable */ export declare class NgIf { private _viewContainer; private _template; private _hasView; constructor(_viewContainer: ViewContainerRef, _template: TemplateRef); ngIf: any; }