I am trying to install ngIf on a host element using @HostBinding decorator.
class ListItem { @HostBinding('ngIf') active: boolean = false; }
And I get the error: I can not bind to 'ngIf', since this is not a well-known “list-item” property.
However, I see an answer here that seems to suggest this use.
source share