ngIf in HostBinding

95 views
Skip to first unread message

Yenthe Oerlemans

unread,
Oct 5, 2016, 8:38:05 AM10/5/16
to AngularJS
I want to create a directive that can hide a host-element when a certain value is bound to the directive but I can't seem to use ngIf as a HostBinding-value.

atm I'm using 

@HostBinding('hidden') hide: boolean = true;

But hidden is of course not the same as ngIf.

How would I go about this?
Reply all
Reply to author
Forward
0 new messages