import { Directive, Input, TemplateRef, ViewContainerRef } from '@angular/core';
/** * Add the template content to the DOM unless the condition is true. * * If the expression assigned to `appUnless` evaluates to a truthy value * then the templated elements are removed removed from the DOM, * the templated elements are (re)inserted into the DOM. * * <div *appUnless="errorCount" class="success"> * Congrats! Everything is great! * </div> * * ### Syntax * * - `<div *appUnless="condition">...</div>` * - `<ng-template [appUnless]="condition"><div>...</div></ng-template>` * */ @Directive({ selector: '[appUnless]'}) export class UnlessDirective { private hasView = false;