import { Directive , Input , OnInit , TemplateRef , ViewContainerRef } from '@angular/core' ; @ Directive ( { selector : '[appShowAuthed]' } ) export class ShowAuthedDirective implements OnInit { constructor ( private templateRef , private viewContainer ) { } condition : boolean ; ngOnInit ( ) { } @ Input ( ) set appShowAuthed ( condition ) { this . condition = condition ; } }